Compare strings (case insensitive)
tf = strcmpi(
s2, ignoring any differences in letter
case. The function returns
true) if the two are
false) otherwise. Text is considered
identical if the size and content of each are the same, aside from case. The return result
tf is of data type
strcmpi is supported only in Stateflow® charts that use MATLAB® as the action language.
Comparison by Using
Return a value of
0 (strings are equal).
h1 = "Hello"; h2 = "Hello"; h3 = "hello"; x = strcmpi(h1,h2) y = strcmpi(h1,h3)
This operator is not supported for use with structures. For more information about structures in Stateflow, see Access Bus Signals Through Stateflow Structures.