Consider a 20-Hz sinusoidal signal plus random noise sampled at 8,000 Hz with 1,024 samples:
where T =1/8,000 seconds and randn is a random noise generator with a unit power and Gaussian distribution.
a. Use a 16-bit code for each wavelet coefficient and write a MATLAB program to perform data compression with the following ratios: 2:1, 4:1, 8:1, 16:1, and 32:1.
b. Measure the SNR in dB for each case.
c. Plot the reconstructed waveform for each case.