Professional Documents
Culture Documents
Exp 2.4
Exp 2.4
Step I : Enter the pass band frequency (fp) and stop band frequency (fq).
Step VI : Find frequency response of the filter using matlab command freqz.
Step VII : Plot the magnitude response and phase response of the filter
3. Program-
fs=8000; % sampling frequency
n=50; % order of the filter
w=1200/ (fs/2);
[h,w]=freqz(b,1,128,8000);
subplot(2,1,1);
grid
subplot(2,1,2);
figure(2)
zplane(b,1); % the plot in lab
title('zplane');
Evaluation Grid (To be created as per the SOP and Assessment guidelines by the faculty):