Quantizer by level
![]() |
![]() |
| Vector | C | |
| in the palette | on the schematic |
The block implements the signal quantization by discrete levels with a set level step. Operation algorithm of the block:

where xi(t) is the i-th element of the block input signal, di is i-th element of quantiztion step vector, floor is the integer-downward rounding function, sign is the sign function, yi(t) is the element of the block output signal.

where xi(t) is the i-th element of the block input signal, di is i-th element of quantiztion step vector, floor is the integer-downward rounding function, sign is the sign function, yi(t) is the element of the block output signal.
Inputs
- input - input signal.
Outputs
- output - output signal.
Properties
- Quantization step – vector of d steps of quantization by each element of the input vector. The dimension of the parameter shall be equal with the dimension of the input vector.
Parameters
none
Note:
- By default, the block implements scalar input signal processing.
- Using this block you can easily implement the algorithm of signal processing of analog-to-digital converter (ADC).

