MATLAB strcmp function
Compare strings.
strcmp(S, T)
S, T |
character vectors to evaluate |
Comparisons are case-sensitive and any leading and trailing blanks in either of the strings are explicitly included in the comparison.
Returns TRUE
if S
is identical to T
;
otherwise, FALSE
.
Value returned is the opposite of the C language convention.
P. Roebuck proebuck@mdanderson.org
strcmp("foo", "bar") # FALSE strcmp(c("yes", "no"), c("yes", "no")) # TRUE
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.