Main Content
Quantizer
Discretize input at given interval
Libraries:
Simulink /
Discontinuities
Description
The Quantizer block discretizes the input signal using a quantization algorithm. The block uses a round-to-nearest method to map signal values to quantized values at the output that are defined by the Quantization interval. A smooth input signal can take on a stair-step shape after quantization.
This equation mathematically describes the round-to-nearest method:
y = q * round(u/q)
where y
is the quantized output, u
is the input, and
q
is the Quantization interval.
Examples
Ports
Input
Output
Parameters
Block Characteristics
Data Types |
|
Direct Feedthrough |
|
Multidimensional Signals |
|
Variable-Size Signals |
|
Zero-Crossing Detection |
|
Extended Capabilities
Version History
Introduced before R2006a