strcmp
Compare strings in Stateflow chart (case sensitive)
Description
compares strings tf = strcmp(str1,str2)str1 and str2.
In charts that use MATLAB® as the action language, the operator returns
1(true) if the strings are identical and0(false) otherwise.In charts that use C as the action language, the operator returns
0if the strings are identical. Otherwise, it returns a nonzero integer that depends on the compiler that you use. This value can differ in simulation and generated code.
Examples
Input Arguments
Version History
Introduced in R2018b







