Digital Signal Processing Laboratory Examination: Punit Kumar Ojha 18EE01011
Digital Signal Processing Laboratory Examination: Punit Kumar Ojha 18EE01011
LABORATORY EXAMINATION
REPORT
figure;
plot(y);
title('Output of DSO');
ylabel('Amplitude');
xlabel('n');
figure;
plot(abs(Y(1:250)));
title('Magnitude response');
Graphs:
Design a digital DTMF transmitter and receiver which can transmit the number 7 and
decode the dialled number
Matlab Code:
f1 = 852;
Fs = 5000;
num1 = [0.8775 0];
den1 = [1 -0.9591 1];
imp = zeros(500);
imp(1) = 1;
figure;
plot(y)
title('Output Signal');
ylabel('Amplitude');
xlabel('n');
figure;
plot(abs(Y(1:500)))
title('Magnitude response')
Graphs:
From the magnitude response, we can see two local maximums at x1 = 85, x2 = 121. From
these we get the following frequencies:
f1 = x1 * Fs / N = 85 * 5000/500 = 850 Hz
f2 = x2 * Fs / N = 121 * 5000/500 = 1210 Hz.
Error in 1st frequency = 852 – 850 Hz = 2 Hz
Error in 2nd frequency = 1210 – 1209 Hz = 1 Hz.