Main Content
String
String manipulation blocks
Use blocks in the String library to manage string signals.
Blocks
ASCII to String | Uint8 vector signal to string signal |
Compose String | Compose output string signal based on specified format and input signals |
Scan String | Scan input string and convert to signals per specified format |
String Compare | Compare two input strings |
String Concatenate | Concatenate input strings to form one output string |
String Constant | Output specified string |
String Contains | Determine if string contains, starts with, or ends with pattern (Since R2020a) |
String Count | Count occurrences of pattern in string (Since R2020a) |
String Find | Return index of first occurrence of pattern string |
String Length | Output number of characters in input string |
String to ASCII | Convert string signal to uint8 vector |
String to Double | Convert string signal to double signal |
String to Enum | Input string signal to enumerated signal |
String to Single | Convert string signal to single signal |
Substring | Extract substring from input string signal |
To String | Convert input signal to string signal |