String Length
R2026bOutput number of characters in input string
Libraries:
Simulink /
String
Description
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.
Ports
Input
Output
Parameters
Block Characteristics
Data Types |
|
Direct Feedthrough |
|
Multidimensional Signals |
|
Variable-Size Signals |
|
Zero-Crossing Detection |
|
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"simulink/String/String Length"
Example: add_block("simulink/String/String Length","myModel/myBlock",MakeNameUnique="on")