Extract substring from string
returns the substring of length
dest = substr(
n starting at the
i-th character of string
substr is supported only in Stateflow® charts that use C as the action language.
"Stateflow" from a longer
str = "Stateflow, rule the waves!"; dest = substr(str,0,9);
Use zero-based indexing.
Enclose literal strings with single or double quotes.