Vector Concatenate, Matrix Concatenate
Concatenate input signals of same data type for iterative processing
- Library:
Simulink / Commonly Used Blocks
Simulink / Math Operations
Simulink / Matrix Operations
Simulink / Signal Routing
HDL Coder / Math Operations
HDL Coder / Signal Routing
Description
The Vector Concatenate and Matrix Concatenate blocks concatenate input signals to create a nonscalar signal that you can iteratively process with a subsystem, for example, a for-each, while-iterator, or for-iterator subsystem.
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.
Ports
Input
Output
Parameters
Model Examples
Block Characteristics
Data Types |
|
Direct Feedthrough |
|
Multidimensional Signals |
|
Variable-Size Signals |
|
Zero-Crossing Detection |
|
Extended Capabilities
Version History
Introduced in R2009b