Impact-Site-Verification: dbe48ff9-4514-40fe-8cc0-70131430799e

Search This Blog

Discrete Time fourier transform in MATLAB|PART 3

Code:

w=-4*pi:0.01:4*pi;
num=[2 1];
den=[1 -0.6];
h=freqz(num,den,w);
subplot(2,2,1);
plot(w/pi,abs(h));
ylabel('Magnitude');
subplot(2,2,2);
plot(w/pi,angle(h));
ylabel('Phase');
subplot(2,2,3);
plot(w/pi,real(h));
ylabel('Real');
subplot(2,2,4);
plot(w/pi,imag(h));
ylabel('Imaginary');


No comments

Popular Posts