String Concatenate - Concatenate input strings to form one output string - Simulink (original) (raw)
Main Content
Concatenate input strings to form one output string
Libraries:
Simulink / String
Description
The String Concatenate block concatenates multiple input strings, in order of their input, to form one output string. Use this block if you want to combine multiple strings into a single string.
Ports
Input
First input string, specified as a scalar.
Data Types: string
Second input string, specified as a scalar.
Data Types: string
Output
Concatenated string, specified as a scalar.
Data Types: string
Parameters
Number of input strings to concatenate, specified as a scalar. You can specify from 2 to 512 input ports.
Programmatic Use
Block Parameter: Inputs |
---|
Type: character vector |
Values: scalar from2 to 512 |
Default: '2' |
Output data type, specified using the string data type to specify a string with no maximum length.
To specify a string data type with a maximum length, specifystringtype(_`N`_)
. For example, stringtype(128)
creates a string data type with a maximum length of 128 characters.
Click the Show data type assistant button to display the Data Type Assistant, which helps you set the data type attributes. SeeSpecify Data Types Using Data Type Assistant for more information.
Programmatic Use
Block Parameter: OutDataTypeStr |
---|
Type: character vector |
Values: 'string' | |
Default: 'string' |
Use the stringtype
function, for example,stringtype(128)
.
Dependency
Clicking the Show data type assistant button enables this parameter.
Block Characteristics
Data Types | string |
---|---|
Direct Feedthrough | yes |
Multidimensional Signals | no |
Variable-Size Signals | no |
Zero-Crossing Detection | no |
Extended Capabilities
Version History
Introduced in R2018a