FUNCTION REFERENCE

strncmpi

Compare the first n characters of text, ignoring case.

Compare the first n characters of text, ignoring case.

Syntax

tf = strncmpi(a, b, n)

Same as strncmp, but upper and lower case letters are equal.

Example

strncmpi({'ABx','aby'}, 'abz', 2)   % [true true]

Differences from MATLAB: none known.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.