Find strings within other strings
k = strfind(
str for occurrences of
pat. The output,
k, indicates the starting index of each occurrence of
pat is not
strfind returns an empty array,
strfind function executes a case-sensitive search.
Only Stateflow® charts that use MATLAB® as the action language support the
Find the Start of a Substring
Find the starting indices of substrings in a string.
h = "Hello, world!" pat = "world" x = strfind(h,pat)
This operator does not support structures. For more information about structures in Stateflow, see Access Bus Signals Through Stateflow Structures.