strlen

Determine length of string

Description

example

L = strlen(str) returns the number of characters in the string str.

Examples

expand all

Return a value of 9.

L = strlen("Stateflow");

Tips

  • Use in Stateflow® charts that use C as the action language.

  • Enclose literal strings with single or double quotes.

Introduced in R2018b