Professional Documents
Culture Documents
20bec0298 Labda6
20bec0298 Labda6
20bec0298 Labda6
SUBMITTED
TO
Prof. Rajesh
Neelakandan
BY
Adhiraj Saxena
20BEC0298
Aim:Gain response of a FIR Lowpass Filter with different windows .
Program:
clc;
clear all;
close all;
% Design of a FIR lowpass filter using hamming window
Fp=2000; Fs=2500; dp=0.005; ds=0.005; FT=10000;
[num2,den2] = fir1(N,2250/10000,hanning(N+1));
% Display the transfer function
% disp('Numerator coefficients are ');disp(num);
% disp('Denominator coefficients are ');disp(den);
Output:
Adhiraj Saxena
20BEC0298
Adhiraj Saxena
20BEC0298
Conclusion: We wrote the MATLAB code to show the gain response of a FIR
Lowpass filter with different windows.
END
Adhiraj Saxena
20BEC0298