DSP Blockset    

Example: Buffering Frame-Based Signals with Overlap.   In the model below, a two-channel frame-based signal with frame period 4 is rebuffered 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 last row of the third 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.


  Example: Buffering Sample-Based Signals with Overlap Buffering Delay and Initial Conditions