0% found this document useful (0 votes)
22 views5 pages

Experiment 15

Experiment 15 aimed to design a FIR lowpass filter with an order of 100 and a rectangular window with a cutoff frequency of 0.4 rad/sec using MATLAB. The window design method was used to create the filter by multiplying an ideal filter impulse response by a finite window function. The rectangular window and FIR filter magnitude and phase responses were generated and verified using code and the FDA toolbox. The filter design was successfully created and verified meeting the given specifications.

Uploaded by

Shalini Sharma
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views5 pages

Experiment 15

Experiment 15 aimed to design a FIR lowpass filter with an order of 100 and a rectangular window with a cutoff frequency of 0.4 rad/sec using MATLAB. The window design method was used to create the filter by multiplying an ideal filter impulse response by a finite window function. The rectangular window and FIR filter magnitude and phase responses were generated and verified using code and the FDA toolbox. The filter design was successfully created and verified meeting the given specifications.

Uploaded by

Shalini Sharma
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 5

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

FIR filter magnitude response through code

43

FIR filter Phase response through code

Specifying Fir lowpass filter parameter using rectangular window in FDA tool box

44

Fir filter magnitude response via FDA tool box

FIR filter phase response in FDA toolbox 45

Conclusion: FIR lowpass filter with given specification was designed using MATLAB code and then
verified using FDA toolbox. .

46

You might also like