Output number of characters in input string
Simulink / String
The String Length block outputs the number of characters in the input string. For example, you can use the String Length block to move focus of attention to a particular location in a string.
Port_1— Input string
Input string, specified as a scalar.
Port_1— Number of characters
Number of characters in the input string, specified as a scalar.