User`s guide

Signal To Workspace
5-396
frames (two samples per frame) by the end of the simulation. The frames are
concatenated to create a 22-by-4 matrix, A, in the MATLAB workspace.
The block settings for the following Example 2 model are similar to the
Example 1 block settings, except
Frames is set to Concatenate frames (2-D
array)
and the Signal From Workspace parameter, Signal, is set to input2,
where
input2 = [1 -1 1 0; 2 -2 1 0; 3 -3 1 0;...; 22 -22 1 0]
In the 2-D output, there is no indication of where one frame ends and another
begins. By setting
Frames to Log frames separately (3-D array) in the
Example 2 model, you can easily see each frame in the MATLAB workspace, as
illustrated in the following model. Each of the 11 frames is logged separately to
create a 2-by-4-by-11 array, A, in the MATLAB workspace.
t=0t=1
t=10
11 10
22 10
. . .
. . .
33 10
44 10
21 21 10
22 22 10
2-by-4 frame-based input
Concatenate Frames
First Frame
Frame 1
Last Frame
Frame 11
MATLAB Workspace
A
11 10
22 10
33 10
44 10
MMMM
21 21 10
22 22 10
=
t=0t=1
t=10
11 10
22 10
. . .
. . .
33 10
44 10
21 21 10
22 22 10
2-by-4 frame-based input
Log frames separately
MATLAB Workspace
First Frame
Frame 1
Last Frame
Frame 11
A: : 1,,()
11 10
22 10
=
A: : 2,,()
33 10
44 10
=
A: : 3,,()
55 10
66 10
=
A: : 11,,()
21 21 10
22 22 10
=