20.6.6.10. Quantizer
The Quantizer block discretizes the input signal at specified interval.
The system is defined by
\(y=q \times round \left( \frac{u}{q} \right)\)
- where,
- \(y\) is the output signal\(u\) is the input signal\(q\) is the quantization interval specified in the block parameter.
Dialog box
Parameter(s) |
Description |
Quantization interval |
Enter the interval around which the output signal is quantized. |
Sample time |
Enter the time interval between samples. |
20.6.6.10.1. Example
We can test the Quantizer block with the CoLink model shown in the below figure The Sine block is configured to a frequency of 1rad/sec and an amplitude of 1. The Quantizer block Quantization Interval is set to 1. Set solver type to Fixed-Step, discrete (no continuous states), and let End time be 1