Program 14

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

PROGRAM 14

Object : To design an IIR low-pass butterworth filter using the following specifications and verify
magnitude, phase and impulse response using FDA toolbox
Order minimum, Passband attenuation in dB : 0.36, Stop band attenuation in dB : 36, Passband
frequency in Hz : 1500, Stopband frequency in Hz : 2000, Sampling frequency in Hz : 6000
Tool used : MATLAB R2010b and FDA Toolbox
Theory : The primary advantage of IIR filters over FIR filters is that they typically meet a given set
of specifications with a much lower filter order than a corresponding FIR filter. This has the obvious
implementation advantages. IIR filters have nonlinear phase (they cannot have linear phase; they
might almost have linear phase). However, if data processing is to be performed off line, then the
effects of the nonlinear phase can be eliminated. So let us assume that the entire input data sequence
is available prior to filtering. This allows for a non-causal, zero-phase filtering approach (via the
filtfilt funtion), which eliminates the nonlinear phase distortion of an IIR filter. The classical IIR
filters - Butterworth, Chebyshev Type I and II, elliptic, and Bessel - all approximate the ideal brick
wall filter in different ways. The Signal Processing Toolbox provides functions to create all these
types of IIR filters in both the analog and digital domains (except Bessel, for which only the analog
case 4is supported), and in lowpass, highpass, bandpass, and bandstop configurations. For most filter
types, you can also find the lowest filter order that fits a given filter specification in terms of
passband ripple, stopband attenuation, and the transition band widths.

Source Code:

clc;
clear all;
close all;
wp=.5;ws=2/3;rp=.36;rs=36;
[N, Wn] = BUTTORD(wp,ws,rp,rs);
[B,A] = BUTTER(N,Wn);
freqz(B,A);
impz(B,A,100);


Result:






FDA TOOL :




Conclusion : Successfully designed the IIR low-pass butterworth filter with specified parameters
using MATLAB commands and verified the magnitude, phase and impulse responses using the FDA
Toolbox as shown in the figure.

You might also like