Given a signal waveform,

sample it at 8,000 samples per second and
a. Write a MATLAB program to quantize x(t) using a 6-bit bipolar quantizer to obtain the quantized signal xq, assuming that the signal range is from 5 to 5 volts;
b. Plot the original signal and quantized signal;
c. Calculate the SNR due to quantization using the MATLAB program.