You are on page 1of 4

DIGITAL PROCESSING

SYSTEM
[Lab Task 04]

[ FA18-EEE-009 ]
[ WARIS SHSH ]
[ Date; 05 Sep /2020 ]
Question : 04-
Let x [n]=(2 n)n, −10 ≤ n≤ 10. Investigate the conjugate symmetry property of its discrete
time Fourier Transform.

Hint: Again compute and plot X ( e jω ) over two periods to study its symmetry
property.
Code>>>
a=-10:10;
b=-200:200;
c=100;
d=(pi/c)*b;
e=((2*a).^a);
w=e*(exp(-j*pi/c).^(a'*b));
phaseX=angle(w);
magnitudex=abs(w);
phaseX=angle(w);
plot(d/pi,magnitudex)
subplot(221)
plot(d/pi,magnitudex)
subplot(222)
plot(d/pi,magnitudex)
plot(d/pi,phaseX)

Question : 05-
Verify linearity property of Fourier transform using real valued finite duration sequences
say x 1 [n] and x 2 [n] uniformly distributed between [0,1] over 0≤n≤10.

Code>>>
x1=rand(1,11);
x2=rand(1,11);
n=0:10;
alpha=2;
beta=3;
k=0:500;
w=pi/500*k;
X1=x1*(exp(-j*pi/500)).^(n'*k);
X2=x2*(exp(-j*pi/500)).^(n'*k);
x=alpha*x1+beta*x2;
X=x*(exp(-j*pi/500)).^(n'*k);
X_chek=alpha*X1+beta*X2;
error=max(abs(X-X_chek))

Question : 06-
Verify frequency shift property of Fourier transform using graphical approach.
Let x [n]=cos( πn/2), 0≤n≤100 and y [ n ] e ( jπn/ 4) x [n]

Hint: Compare the plots of x[n] with y[n] you will clearly observe a frequency
shift of π /4.

Code>>>
a=0:100;
b=-100:100;
c=(pi/100)*b;
d=cos(pi*a/2);
X=d*(exp(-j*pi/100)).^(a'*b);
e=exp(j*pi*a/4).*d;
Y=e*(exp(-j*pi/100)).^(a'*b);
subplot(221)
valueofd=abs(X);
plot(c/pi,valueofd)
subplot(222)
valueofe=abs(Y);
plot(c/pi,valueofe)

You might also like