Discrete Time Fourier Transform in MATLAB|Part 2
CODE:
w=0:0.01:2*pi;
a=[1];
b=[1 -0.8];
h=freqz(a,b,w);
subplot(2,1,1);
plot(w/pi,abs(h));
ylabel('Magnitude');
subplot(2,1,2);
plot(w/pi,angle(h));
w=0:0.01:2*pi;
a=[1];
b=[1 -0.8];
h=freqz(a,b,w);
subplot(2,1,1);
plot(w/pi,abs(h));
ylabel('Magnitude');
subplot(2,1,2);
plot(w/pi,angle(h));
ylabel('Phase');
No comments