strcmpi
Comparing two character arrays in a case-insensitive manner
strcmp(s1, s2)
s1
ands2
should be arrays of characters.s1
ands2
are compared case-insensitively.- It returns logical 1 if
s1
ands2
have the same sizes and have the same elements, and returns logical 0 if otherwise. - It returns logical 0 if any of
s1
ands2
is not a character array.