Lab 4 Wireless

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

Input Siganl: x(n)=2(0.

8)n+2 u(n-2)

k=0:500;
n=0:500;
w=[0:1:500]*pi/500;
x=2*((0.8).^(n+2));
y=x*(exp(-j*pi/500)).^(n'*k);
subplot(2,3,1)
plot(k,y)
title('fouier transform')
y1=(1.28*exp(-j*w))./(exp(j*w)-.8);
subplot(2,3,2)
plot(k,y1)
title('Fourier simpleform')
imaginary=imag(y)
subplot(2,3,3)
plot(imaginary)
title('imaginary')
realpart=real(y)
subplot(2,3,4)
plot(realpart)
title('realpart')
magnitude=abs(y)
subplot(2,3,5)
plot(magnitude)
title('magnitude')
phase=angle(y)
subplot(2,3,6)
plot(phase)
title('angle')

You might also like