User`s guide
Signal From Workspace
5-389
•If Cyclic Repetition is specified, the block repeats the signal from the
beginning after generating the last frame. If there are not enough samples
at the end of the signal to fill the final frame, the block zero-pads the final
frame as necessary to ensure that the output for each cycle is identical
(e.g., the ith frame of one cycle contains the same samples as the ith frame
of any other cycle).
Examples Example 1
In the first model below, the Signal From Workspace imports a two-channel
signal from the workspace matrix
A. The Sample time is set to 1 and the
Samples per frame is set to 4, so the output is frame-based with a frame size
of 4 and a frame period of 4 seconds. The
Form output after final data value
by
parameter specifies Setting To Zero, so all outputs after the third frame (at
t=8) are zero.
Example 2
In the second model below, the Signal From Workspace block imports a
sample-based matrix signal from the 3-D workspace array
A. Again, the Form
output after final data value by
parameter specifies Setting To Zero, so all
outputs after the third (at t=2) are zero.
11
21
30
40
51
61
70
80
(T
s
=1, M
o
=4)
first matrix output
t=0t=4
Matrix output, frame period = M
o
∗T
s
ch2
ch1
ch2
ch1
Ch 1 Ch 2
MATLAB Workspace
A
11
21
30
40
51
61
70
80
91
10 1
=
91
10 1
00
00
ch2
ch1
t=8
00
00
00
00
ch2
ch1
t=12