User`s guide

3 Working with Signals
3-44
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” on
page 3-11 for more about sample-based signals.
Constructing Sample-Based Multichannel Signals
from Existing Sample-Based Multichannel Signals
You can combine existing multichannel sample-based signals into a larger
multichannel signal by using the Matrix Concatenation block in Simulink’s
Sources library.
Example: Concatenating Multichannel Signals. The model below shows two
two-channel sample-based signals (four channels total) being combined into a
2-by-2 multichannel matrix signal.
To build the model, make the following parameter settings:
In Signal From Workspace, set
Signal = [1:10;-1:-1:-10]'
1
2
3
4
13
24
Two 2-channel signals,
Four distinct channels
4-channel signal