Main Content
matches
Description
compares the strings tf
= matches(str1
,str2
)str1
and str2
. The operator
returns 1
(true
) if the strings are identical, and
returns 0
(false
) otherwise.
compares strings tf
= matches(str1
,str2
,IgnoreCase=true)str1
and str2
, ignoring any
differences in letter case.
Note
The matches
operator is not supported in Stateflow® charts that use C as the action language. For similar functionality, use
strcmp
.
Examples
Input Arguments
Limitations
This operator does not support the use of Stateflow structure fields or messages. For more information about structures in Stateflow, see Access Bus Signals.
Version History
Introduced in R2021b