strcmp — compare character strings
res = strcmp(string_one,string_two,[,'i'])
A character string or matrix of character strings
A character string or matrix of character strings
parameter to do stricmp (case independent), default value is 's'
matrix.
res = strcmp(string_one,string_two)
returns an
integral value indicating the relationship between the strings.
A value greater than zero indicates that the first character that
does not match has a greater value in string_one
than
in string_two
And a value less than zero indicates the opposite.