User`s guide
3 Working with Signals
3-76
yout(:,:,1:4)
ans(:,:,1) =
1 -1
0 5
ans(:,:,2) =
2 -2
0 5
ans(:,:,3) =
3 -3
0 5
ans(:,:,4) =
4 -4
0 5
Exporting a Frame-Based Signal
Using the To Workspace Block
Recall that 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.) When the input to the To Workspace block
is a frame-based signal (and the
Save format parameter is set to Array), the
block creates an P-by-N array in the MATLAB workspace containing the P
most recent samples from each channel. The number of rows, P, is specified by
the
Limit data points to last parameter. The newest samples are added at the
bottom of the matrix.
The figure below illustrates this for three consecutive frames of a frame-based
signal (two samples per frame) exported to matrix
A.