DSP Blockset | ![]() ![]() |
Example: Buffering Sample-Based Signals with Overlap. In the following model, a four-channel sample-based signal with sample period 1 is buffered to a frame-based signal with frame size 3 and frame period 2. Because of the overlap, the input sample period is not conserved, and the output sample period is 2/3.
To build the model, define the following variable in the MATLAB workspace.
Connect the Buffer block to a Signal From Workspace source and a To Workspace sink with the following parameter settings:
Note that the inputs do not begin appearing at the output until the second row of the second matrix. This is due to the block's latency. See Delay and Latency for general information about algorithmic delay, and see Buffering Delay and Initial Conditions for instructions on how to calculate buffering delay.
![]() | Overlapping Buffers | Example: Buffering Frame-Based Signals with Overlap | ![]() |