| DSP Blockset | ![]() |
Buffering with Alteration of the Signal. Some forms of buffering alter the signal's data or sample period, in addition to adjusting the frame size. There are many instances when this type of buffering is desirable, for example when creating sliding windows by overlapping consecutive frames of a signal, or selecting a subset of samples from each input frame for processing.
The blocks that alter a signal while adjusting its frame size are listed below. In this list, Tsi is the input sequence sample period, and Tfi and Tfo are the input and output frame periods, respectively.
where Mo is the output frame size specified by the Output buffer size (per channel) parameter. As a result, the new output sample period is
Rows. The output and input frame periods are the same, Tfo = Tfi, and the new output sample period is
Columns. The output and input frame periods are the same, Tfo = Tfi, and the new output sample period is
In all of these cases, the sample period of the output sequence is not equal to the sample period of the input sequence.
Example: Buffering with Alteration of the Signal. In the model below, a signal with a sample period of 0.125 second is rebuffered from a frame size of 8 to a frame size of 16 with an overlap of 4.
The relation for the output frame period for the Buffer block is
which indicates that Tfo should be (16-4)*0.125, or 1.5 seconds, as confirmed by the second Probe block. The sample period of the signal at the output of the Buffer block is no longer 0.125 second, but rather 0.0938 second (that is, 1.5/16). Thus, both the signal's data and the signal's sample period have been altered by the buffering operation.
| Buffering with Preservation of the Signal | Avoiding Unintended Rate Conversions | ![]() |
Learn more about the latest releases of MathWorks products: |
| © 1994-2009 The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |