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

Figure 1  colink model

 

Figure 2  A result from scope