Question: please solve in MATLAB, SOLVE ONLY Q2 : Set sinewave frequency to 10 Hz, sample frequency to 100 Hz and run the code for different

please solve in MATLAB, SOLVE ONLY Q2 : Set sinewave frequency to 10 Hz, sample frequency to 100 Hz and run the code for different values of B and fill the table
Exercise#6: Quantization Error 1. Add the script to calculate the Signal-to-Noise Ratio (dB) SNR (in dB) = 10 logo (Power of Digital Signal / Power of QE) Where: Quantization Error (QE) = (Digital Sample - Analog Sample) N- Signal power:= Hint: Use the sum(), length() & logi0 () functions. 2. Set sinewave frequency to 10 Hz, sample frequency to 100 Hz and run the code for different values of B and fill the table: Quantization Bits, B SNR (dB) 3 4 5 Theoretically, the max (Best scenario), SNR should be 6 times the number of bits 3. Discuss the effect of B on the quality of the digital signal
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
