Discretize input at specified interval
The Quantizer block passes its input signal through a stair-step function so that many neighboring points on the input axis are mapped to one point on the output axis. The effect is to quantize a smooth signal into a stair-step output. The output is computed using the round-to-nearest method, which produces an output that is symmetric about zero.
y = q * round(u/q)
y is the output,
q the Quantization interval parameter.
The Quantizer block accepts and outputs real or complex signals
more information, see Data Types Supported by Simulink in
the Simulink® documentation.
The interval around which the output is quantized. Permissible
output values for the Quantizer block are
n is an integer and
q the Quantization
interval. The default is
Simulink software by default treats the Quantizer block as unity gain when linearizing. This setting corresponds to the large-signal linearization case. If you clear this check box, the linearization routines assume the small-signal case and set the gain to zero.
This parameter is not visible in the block dialog box unless
it is explicitly set to a value other than
shows how you can use the Quantizer block.
The Quantizer block appears in
Boiler Plant model/digital thermometer/ADC subsystem.
The ADC subsystem digitizes the input analog voltage by:
Multiplying the analog voltage by 256/5 with the Gain block
Rounding the value to integer floor with the Quantizer block
Limiting the output to a maximum of 255 (the largest unsigned 8-bit integer value) with the Saturation block
For more information, see Explore the Fixed-Point "Bang-Bang Control" Model in the Stateflow® documentation.
Double | Single
Inherited from driving block