DSP Blockset | ![]() ![]() |
Constructing Sample-Based Multichannel Signals
from Independent Sample-Based Signals
You can combine individual sample-based signals into a multichannel signal by using the Matrix Concatenation block in the Simulink Sources library.
Example: Concatenating Single-Channel Signals. In the model below, four independent sample-based signals are combined into a 2-by-2 multichannel matrix signal.
To build the model, make the following parameter settings:
1:10
-1:-1:-10
zeros(10,1)
5*ones(10,1)
Each 4-by-1 output from the Matrix Concatenation block contains one sample from each of the four input signals. All four samples in the output correspond to the same instant in time. The Reshape block simply rearranges the samples into a 2-by-2 matrix. Note that the Reshape block works columnwise, so that a column vector input is reshaped as shown below.
The 4-by-1 matrix and the 2-by-2 matrix in the above model represent the same sample-based four-channel signal. In some cases one representation may be more useful than the other. See Sample-Based Multichannel Signals for more about sample-based signals.
![]() | Constructing Multichannel Sample-Based Signals | Constructing Sample-Based Multichannel Signals from Existing Sample-Based Multichannel Signals | ![]() |