DSP Blockset    

Example: Importing a Sample-Based Matrix Signal.   In the model below, the Signal From Workspace imports a four-channel sample-based signal with the following data:

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

Array A represents a 4-channel signal with 100 samples.

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

The Sample time and Samples per frame settings of 1 yield a sample-based output with sample period of 1 second. Each of the four elements in the matrix represents an independent channel. The Form output after final data value parameter setting specifies that all outputs after the one-hundredth are zero.

These two sections may also be of interest to you:


  Importing a Sample-Based Matrix Signal Importing a Multichannel Frame-Based Signal