Uniform PCM
The objective of this exercise is to investigate the error in the quantization of a sinusoidal signal using uniform PCM.
1. Quantize the sinusoidal signal

once to 8 levels and once to 16 levels for a sampling interval Ts = 0.1. Plot the original signal and the two quantized versions on the same graph, and observe the results.
2. Compute the SQNR for the 8- and 16-level quantizers.