stringtype
Create string data type
Description
creates a Simulink® string data type with a maximum length. Alternatively, you can also
create string data types using the String
Constant, String
Concatenate, and Compose
String blocks. string
= stringtype(maximum_length
)
stringtype(
creates a
Simulink string data type with a maximum length that you can type directly on
the MATLAB® command line or in the Output data type parameter
of the String Constant, String Concatenate, or
Compose String block.maximum_length
)
Tip
Specifying stringtype(0)
creates a string data type
with no maximum length. This syntax is the same as specifying
string
for Simulink block data types.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2018aSee Also
ASCII to String | Compose String | Scan String | String Compare | String Concatenate | String Constant | String Find | String Length | String to Double | String to Single | String to Enum | String to ASCII | Substring | To String