Documentation

String Length

Output number of characters in input string

  • Library:
  • Simulink / String

Description

TheString Lengthblock outputs the number of characters in the input string. For example, you can use theString Lengthblock to move focus of attention to a particular location in a string.

Ports

Input

expand all

Input string, specified as a scalar.

Data Types:string

Output

expand all

Number of characters in the input string, specified as a scalar.

Data Types:uint32

Block Characteristics

Data Types

base integer

Multidimensional Signals

No

Variable-Size Signals

No

Introduced in R2018a

Was this topic helpful?