Determine if pattern is in a string
TF = contains(
the specified pattern, and returns
contains is supported only in Stateflow® charts that use MATLAB® as the action language.
1(true) if the string contains the pattern.
h = "Hello, world!" pat = "world" x = contains(h,pat)
This operator is not supported for use with structures. For more information about structures in Stateflow, see Access Bus Signals Through Stateflow Structures.