DSP Blockset Previous page   Next Page

Example: Creating Signals with the Sine Wave Block

The Sine Wave block dialog box contains the following key parameters.

In the model below, a Sine Wave block generates a frame-based (multichannel) matrix containing three independent signals:

Each channel has a frame size of 64 samples. The three signals are summed point-by-point by a Matrix Sum block, and exported to the workspace.

To build the model, set the Sum along parameter of the Matrix Sum block to Rows, and make the following parameter settings in the Sine Wave block:

After running the model, you can look at a portion of the resulting summed sinusoid by typing

at the command line.

See Multichannel Signals for more information about the representation of sample-based and frame-based data.


Previous page  Creating Signals Using Signal Generator Blocks Creating Signals Using the Signal From Workspace Block Next page

Learn more about the latest releases of MathWorks products:

 © 1994-2009 The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS