| DSP Blockset | ![]() |
Example 1: Generating Sample-Based Output
In the model below, the Signal From Workspace block creates a four-channel sample-based signal with the following data:
To create the model, specify the following parameter values in the Signal From Workspace block:
cat(3,[1 -1;0 5],[2 -2;0 5],[3 -3;0 5])
1
1
Setting to zero
The Sample time setting of 1 yields a sample-based output with sample period of 1 second. Each of the four elements in the matrix signal represents an independent channel (the channel numbering is arbitrary). The Form output after final data value parameter setting specifies that all outputs after the third are zero.
| Creating Signals Using the Signal From Workspace Block | Example 2: Generating Frame-Based Output | ![]() |
Learn more about the latest releases of MathWorks products: |
| © 1994-2009 The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |