Objective:-: This Lab Is Only About IIR Filters. IIR (Infinite Impulse Response), in Signal Processing, A Filter Is
Objective:-: This Lab Is Only About IIR Filters. IIR (Infinite Impulse Response), in Signal Processing, A Filter Is
This lab is only about IIR Filters. IIR( infinite impulse response), In signal processing, a filter is
a device or process that removes some unwanted components or features from a signal. In this lab we will
study some common type of digital IIR Filters which are butterworth and chebyshev type1.
Introduction:
The impulse response or the frequency response classify digital filters. The impulse response is the
response of a filter to an input impulse: x[0]=1 and x[i]=0 for all i≠0. The Fourier transformation of the
impulse response is the filter frequency response which describes the gain of the filter for different
frequencies.
if the impulse response exists indefinitely, it is an IIR (Infinite Impulse Response) filter. How the output
values are calculated determines whether the impulse response of a digital filter falls to zero after a finite
period of time, whereas for IIR filters the output values also depend on the previous output values.
The output values of IIR filters are calculated by adding the weighted sum of previous and current input
values to the weighted sum of previous output values. If the input values are xi and the output values yi,
the difference equation defines the IIR filter:
The number of forward coefficients Nx and the number of reverse coefficients Ny is usually equal and is
the filter order. The higher the filter order, the more the filter resembles an ideal filter. This is illustrated
in the following figure of a frequency response of lowpass Butterworth filters with different orders. The
steeper the filter gain falls, the higher the filter order is.
Butterworth filter
The Butterworth filter is a type of signal processing filter designed to have as flat a frequency
response as possible in the passband. It is also referred to as a maximally flat magnitude filter.
Chebyshev filters
Chebyshev filters are analog or digital filters having a steeper roll-off and more passband ripple
(type I) or stopband ripple (type II) than Butterworth filters. ... This type of filter is named after
Pafnuty Chebyshevbecause its mathematical characteristics are derived
from Chebyshev polynomials.
Equations (commands):-
[n,wn]=buttord(w1,w2,rp,rs)
[b,a]=butter(n,wn)
[z,p,k]=butter(n,wn)
[h,om]=freqs(b,a,w)
[n,wn]=cheb1ord(w1,w2,rp,rs)
[b,a]=cheby1(n,rp,wn)
[h,om]=freqz(b,a,w)
[n,wn]=buttord(omp,oms,alphap,alphas)
[b,a]=butter(n,wn,’high’)
[h,om]=freqz(b,a,w)
[n,wn]=buttord(omp,oms,alphap,alphas)
[b,a]=butter(n,wn,’high’)
ACTIVITY
Input
rp,rs,wp,ws,fs
[n,wn]=buttord(w1,w2,rp,rs)
[b,a]=butter(n,wn)
[h,om]=freqs(b,a,w)
Stem both the signal
END
Flow Chart
Start
Input
rp,rs,wp,ws,fs
END
Conclusion:
This lab was about implementation of infinite impulse response filters. IIR filters are digital
filters with infinite impulse response. Unlike FIR filters, they have the feedback and are known
as recursive digital filters. We learned and analysed the digital filter which are butterworth low
pass and high pass. And chebyshev type 1 band stop and band pass filters. We run their matlab
codes and analysed the output result