User`s guide

Importing Signals
3-69
Beginning with the first M rows of the matrix, the block releases M rows of the
matrix (i.e., one frame from each channel) to the output every M
T
s
seconds.
Therefore, if the
Signal parameter specifies a W-by-N workspace matrix, the
output of the Signal From Workspace block is an M-by-N matrix representing
N channels.
The figure below illustrates this for a 6-by-4 workspace matrix,
A, and a frame
size of 2.
As the figure above suggests, the output of the Signal From Workspace block
can only be a valid frame-based signal (having N independent channels) if the
W-by-N workspace matrix
A in fact represents N independent channels. In
other words, the workspace matrix must be oriented so as to have the
independent channels as its columns.
Note Although independent channels are generally represented as columns,
a single-channel signal can be represented in the workspace as either a
column vector or row vector. The output from the Signal From Workspace
block is a column vector in both cases.
When the block has output all of the rows available in the specified variable, it
can start again at the beginning of the signal, or simply repeat the final value
(or generate zeros) until the end of the simulation. This behavior is controlled
sample 5
sample 6
Frame-based signal:
4 channels, 2 samples per frame
MATLAB workspace matrix, A:
4 channels, 6 samples each
ch1 ch2 ch3 ch4
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
1
2
1
2
1
2
3
4
3
4
3
4
3
4
5
6
5
6
5
6
5
6
sample 3
sample 4
sample 1
sample 2