Beruflich Dokumente
Kultur Dokumente
SECTION: F
POST LAB 7
Question # 1
Attach plots of in lab tasks.
1
SUBMITTED TO: MS.UZMA PARVEEN
OCTOBER 12th , 2016.
DIGITAL SIGNAL PROCESSING MAAZ HUSSAIN EE-196
SECTION: F
Question # 2:
Observe the DFT magnitude plot for x (t) =sin (2ni000t) +0.5sin (2n2000t+ (3n /4))
And prove that X (0) is equal to N times x (n)'s Average value.
CODE:
2
SUBMITTED TO: MS.UZMA PARVEEN
OCTOBER 12th , 2016.
DIGITAL SIGNAL PROCESSING MAAZ HUSSAIN EE-196
SECTION: F
Xk(k+1)=Xk(k+1)+(xn(n+1)*ex title('Synthesized Input signal from
p((-j)*2*pi*k*n/N)); IDFT')
end grid
end %proof:
%-------------------------- fprintf('- the value of X(0)(the
---- first DFT output) =
magnitude=abs(Xk); % Find %f\n',magnitude(1,1))
the magnitudes of fprintf('- the average of xn = %f
individual DFT points \n',mean2(xn))
%code block to plot the fprintf('multiplying average of x(n)
magnitude spectrum with N = %f = to
%-------------------------- X(0)\n',N*mean2(xn))
-----
k=0:N-1;
Df = Fs/N;
Fk = k.*Df; % Analysis
frequencies
subplot(412);
stem(Fk,magnitude,'filled',
'r');
xlabel ('Frequency (Hz)');
ylabel ('Magnitude');
xlim([0 Fs])
title('Magnitude Spectrum')
grid
Prove:
• The value of X(0)(the first DFT output) is 80.000000
• The average of xn is 1.000000
• multiplying average of x(n) with N is 80.000000 that is X(0)
The averaging value of x(n) gives the value of dc offset
In this case is the dc offset value is 1 and it is proved that
x(n) . N=X(0)
3
SUBMITTED TO: MS.UZMA PARVEEN
OCTOBER 12th , 2016.
DIGITAL SIGNAL PROCESSING MAAZ HUSSAIN EE-196
SECTION: F
Question # 3
Attach plots and Interpret results of Q2
PLOT:
COMMENTS:
It was observed that:
4
SUBMITTED TO: MS.UZMA PARVEEN
OCTOBER 12th , 2016.
DIGITAL SIGNAL PROCESSING MAAZ HUSSAIN EE-196
SECTION: F
5
SUBMITTED TO: MS.UZMA PARVEEN
OCTOBER 12th , 2016.