N-Ratio Buffer
Libraries:
DSP System Toolbox /
Signal Management /
Buffers
Description
The N-Ratio Buffer block buffers data into blocks of length equal to integer N multiples of the input frame length. The integer ratio N between the output frame length and input frame length is given by the Output-to-input frame length ratio parameter.
Here is an illustration that shows how the block buffers the data. By default, the buffer is initialized with zeros. As new data comes in, the block groups this data into lengths of the specified size. When sufficient data is not available, the block outputs zeros.

The N-Ratio Buffer block optimizes the memory used in the generated code for P- to NP-frame conversion.
Examples
Ports
Input
Output
Parameters
Block Characteristics
Data Types |
|
Direct Feedthrough |
|
Multidimensional Signals |
|
Variable-Size Signals |
|
Zero-Crossing Detection |
|
Extended Capabilities
Version History
Introduced in R2026a


