n characters of strings (case
compares up to
tf = strncmpi(
n characters of
s2, ignoring any differences in letter case. The function returns
true) if the two are identical and
false) otherwise. Text is considered identical if
the content of each is the same up to the end or the first
whichever comes first, ignoring case.
strncmpi is supported only in Stateflow® charts that use MATLAB® as the action language.
1(true) if the two strings are identical, ignoring
h = "Hello, world!" h2 = "Hello, world!!!!!!!!" x = strncmp(h, h2, 8) x2 = strncmpi(h, h2, 8)
This operator is not supported for use with structures. For more information about structures in Stateflow, see Access Bus Signals Through Stateflow Structures.