strcmp
- :
tf =strcmp(s1, s2)¶ Return true where the strings s1 and s2 are identical.
The comparison is case sensitive and exact. If either argument is a cell array the result is a logical array of the cell’s size; two cells must have the same size unless one of them has a single element. Arguments that are not strings never compare equal.