Concatenate input signals of same data type to create contiguous output signal
Simulink / Commonly Used Blocks
Simulink / Math Operations
Simulink / Signal Routing
HDL Coder / Math Operations
HDL Coder / Signal Routing
The Vector Concatenate and Matrix Concatenate blocks concatenate the input signals to create a nonvirtual output signal whose elements reside in contiguous locations in memory.
In the Simulink® library, these blocks are different configurations of the same block. They differ based on the setting of their Mode parameter, which determines whether the block operates in vector or multidimensional array concatenation mode. The input signal requirements and output signal depend on the mode of concatenation.
Block | Mode Setting | Input Signal Requirements | Output Signal |
---|---|---|---|
Vector Concatenate | Vector |
| When all inputs are vectors, the output is a vector. If any of the inputs are row or column vectors, the output is a row or column vector, respectively. Tip To create a vector of function calls, use a Mux block. |
Matrix Concatenate | Multidimensional array | Signals of any dimensionality (scalars, vectors, and matrices) | The output is always an array. Trailing dimensions
are assumed to be Concatenation is on the dimension that you specify with the Concatenate dimension parameter. |
The signals in the output signal appear in the same order as the input signals for the block. For a description of the port order for various block orientations, see Port Location After Rotating or Flipping.
You can use multiple Vector Concatenate or Matrix Concatenate blocks to create the output signal in stages, but the result is flat, as if you used a single block to concatenate the signals.
You must use a Vector Concatenate or Matrix Concatenate block to define an array of buses. For more information, see Group Nonvirtual Buses in Arrays of Buses.
Data Types |
|
Direct Feedthrough |
|
Multidimensional Signals |
|
Variable-Size Signals |
|
Zero-Crossing Detection |
|