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:

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