Main Content
strfind
Syntax
Description
searches the string k
= strfind(str
,substr
)str
for occurrences of the substring
substr
. The operator returns a vector that contains the starting
index of each occurrence of substr
in str
. The
search is case-sensitive.
Note
The strfind
operator is not supported in Stateflow® charts that use C as the action language.
Examples
Input Arguments
Output 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