contains
Determine if pattern is in a string
Syntax
Description
tf = contains(
returns str
,pat
)1
(true
) if str
contains
the specified pattern, and returns 0
(false
)
otherwise.
Note
The operator contains
is supported only in Stateflow® charts that use MATLAB® as the action language.
Examples
Limitations
This operator is not supported for use with structures. For more information about structures in Stateflow, see Access Bus Signals Through Stateflow Structures.