substr
Extract substring from string
Syntax
Description
returns the substring of length dest
= substr(str
,i
,n
)n
starting at the
i
-th character of string str
. Use
zero-based indexing.
Note
The operator substr
is supported only in Stateflow® charts that use C as the action language.
Examples
Tips
Use zero-based indexing.
Enclose literal strings with single or double quotes.