DSP Blockset    

Example: Exporting a Frame-Based Signal.   In the model below, the To Workspace block exports a three-channel frame-based signal with the following data:

To create the model, define the following variables at the MATLAB command line.

Matrix A represents a two-channel signal with 100 samples, and matrix B represents a one-channel signal with 100 samples.

Specify the following parameter values in the Signal From Workspace block:

The Sample time setting of 1 and Samples per frame setting of 4 yield a frame-based output with sample period of 1 second and frame period of 4 seconds.

Specify the following parameter values in the To Workspace block:

Run the model, and look at output yout. The first 10 samples (rows) are shown.

The following two sections may also be of interest:


 Exporting a Frame-Based Signal Using the To Workspace Block Exporting and Playing WAV Files