User`s guide
Constructing Signals
3-45
•In Signal From Workspace1, set Signal = [zeros(10,1) 5*ones(10,1)]
•In Matrix Concatenation, set:
-
Number of inputs = 2
- Concatenation method = Vertical
Each 2-by-2 output from the Matrix Concatenation block contains both
samples from each of the two input signals, so that all four samples in the
output correspond to the same instant in time. See “Sample-Based
Multichannel Signals” on page 3-11 for more about sample-based signals.
Constructing Multichannel Frame-Based Signals
A frame-based signal with N channels and frame size M is represented by a
sequence of M-by-N matrices. (The special case of N = 1 represents a
single-channel signal.) There are two basic ways to construct a multichannel
frame-based signal from existing signals:
•By horizontally concatenating existing frame-based signals – Multiple
individual frame-based signals (with the same frame rate and size) can be
combined into a multichannel frame-based signal using the Simulink Matrix
Concatenation block. Individual signals can be added to an existing
multichannel signal in the same way.
•By buffering existing sample-based or frame-based signals – Multichannel
sample-based and frame-based signals can be buffered into multichannel
ch1 ch2 ch3 ch4
1
2
3
4
5
6
1
2
3
4
5
6
1
2
3
4
5
6
1
2
3
4
5
6
1
2
3
4
5
6
1
2
3
4
5
6
1
2
3
4
5
6
1
2
3
4
5
6
sig1 sig2 sig3 sig4
Four frame-based signals:
1 channel each,
6 samples per frame
Multichannel frame-based signal:
4 channels,
6 samples per frame