lab4DSPBEE13 Sampling
lab4DSPBEE13 Sampling
Course/Section: Semester:
Objectives
The objective in this lab is down sampled audio signal and its analysis in frequency domain.
Quantization of signal
Lab Instructions
The students should perform and demonstrate each lab task separately for step-wise evaluation
Each group shall submit one lab report on LMS within 6 days after lab is conducted. Lab report
submitted via email will not be graded.
. Students are however encouraged to practice on their own in spare time for enhancing their
Lab Report Instructions
All questions should be answered precisely to get maximum credit. Lab report must ensure following
items:
Lab objectives
MATLAB codes
Results (graphs/tables) duly commented and discussed
Conclusion
You are familiar with the above figure for downsampling. For a discrete-time signal to be
sampled by the factor of M, you need to first pass the signal from the low pass filter with a
certain cutoff frequency to avoid the frequency aliasing in the downsampled signal.
The above-mentioned figure a quantizer function . Given below is the quantization function in
Matlab (algorithm)
X=(1:99)*(8/100)-4;
N = 8; %number of quantization levels.
% find the highest value point in the signal, round it to the upper limit.
% find the lowest value point in the signal, round it to the lower limit.
qstep = (high-low)/N;
Q = floor((X-low)/qstep);
low = low + qstep/2;
Y = low + qstep*Q;
1. Redo the above code in Matlab, plot the original and quantized signal in a
subplot for N = 8, 16, 32, 64.