strcmpi
compare character strings (case independent)
Calling Sequenceres = strcmpi(string_one, string_two)Argumentsstring_one
a character string or matrix of character strings.
string_two
a character string or matrix of character strings.
resa matrix of integers.Descriptionres = strcmpi(string_one, string_two) returns an
integral value indicating the relationship between the strings. The two strings are compared in using the lexicographical order.
The value is 0 if string_one
is equal to string_two (case independently),
1 if string_one is greater than string_two and -1 else.
ExamplesSee Also
strcat
strcmp