strlen
Determine length of string
Syntax
Description
returns the number of characters in the string L
= strlen(str
)str
.
Note
The operator strlen
is supported only in Stateflow® charts that use C as the action language. In charts that use
MATLAB® as the action language, use strlength
.
Examples
Tips
Enclose literal strings with single or double quotes.
Version History
Introduced in R2018b