| DSP Blockset | ![]() |
Example: Buffering Sample-Based Signals Without Overlap. In the model below, a two-channel sample-based signal is buffered into a two-channel frame-based signal.
To build the model, make the following parameter settings:
The Signal From Workspace block generates one two-channel sample at each sample time due to the Samples per frame parameter setting of 1. The Buffer size setting of 4 in the Buffer block results in a frame-based output with frame size 4.
A much better way to create the frame-based signal shown above is to set the Samples per frame parameter of the Signal From Workspace block to 4. The Signal From Workspace block then performs the buffering internally, and directly generates the two-channel frame-based signal; the separate Buffer block is not needed. See these sections for more information:
| Buffering Sample-Based and Frame-Based Signals | Overlapping Buffers | ![]() |
Learn more about the latest releases of MathWorks products: |
| © 1994-2009 The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |