Digital Low pass Filter in MATLAB | Part 1


%Code:-

w=-pi:0.01:pi;
num=[1];
den=[1 -0.5];
h=freqz(num,den,w);
subplot(2,1,1);
plot(w,abs(h));
ylabel('Magnitude');
subplot(2,1,2);
plot(w,angle(h));
ylabel('Phase');


No comments