Experiment 15
Experiment 15
Object: Design a FIR lowpass filter with given specification and verify the magnitude response using FDA
toolbox. Order=100 Window =Rectangular window Cut off Frequency in radian/sec=0.4
Software Used: MATLAB Theory: - FIR filter is one that is described by the difference equation and by the transfer function
The window design method does not produce filters that are optimal, but the method is easy to understand and does produce filters that are reasonably good. Of all the hand-design methods, the window method is the most popular and effective. In the window method we develop a causal linear-phase FIR filter by multiplying an ideal filter that has an infinite-duration impulse response (IIR) by a finite-duration window function:
where h[n] is the practical FIR filter, hd[n] is the ideal IIR prototype filter, and w[n] is the finite-duration window function. The rectangular window is what you would obtain if you were to simply segment a finite portion of the impulse response without any shaping in the time domain:
42
Source Code:clc; clear all; close all; n=100; fc=0.4; w=rectwin(101); b=fir1(n,fc,'low',w); fvtool(b,1); wvtool(w);
Results:
Rectangular window with N=100 through code
43
Specifying Fir lowpass filter parameter using rectangular window in FDA tool box
44
Conclusion: FIR lowpass filter with given specification was designed using MATLAB code and then
verified using FDA toolbox. .
46