DSP Blockset | ![]() ![]() |
Example 2: Generating Frame-Based Output
In the model below, the Signal From Workspace creates a two-channel frame-based signal with the following data:
To create the model, specify the following parameter values in the Signal From Workspace block:
[1 2 3 4 5 6 7 8 9 10;1 1 0 0 1 1 0 0 1 1]'
1
4
The Sample time setting of 1
and the Samples per frame setting of 4
yield a frame-based output with a frame size of 4 samples and a frame period of 4 seconds. The Form output after final data value parameter setting specifies that all outputs after the third frame are zero.
Note that the output of the To Workspace block, yout
, is the original signal with appended zeros in each channel:
![]() | Example 1: Generating Sample-Based Output | Constructing Signals | ![]() |