Lab Manual Filter Design
Lab Manual Filter Design
LAB MANUAI-
B.E (FCE), tV/I
i' r"1'
0J j 3sfi
1
LABORATORY RULES
Experiments: .2s%
Viva: 2r%
Performance: l0o/o
Final Examination: 40o/o
t.
,,1
List of Experiments:
I- Analysis and design of firter circuits using computer
simulation
II. Butterworth Filter Using Matlab
Experiment 01:
Analysis and design of filter circuits using computer simuration
SOFTWARE REQUIRED:
[. Matlab
2. Simulink
Simulation Procedure:
.:,
- t!-,.di-,e. E-i':j:tii{i
;ij.:
-r :Y.:::i:,:.;t
1.*inclou. , .,:..r,.,,:,.:..,,i:.,r
Hef p ri
r, :/-.'iu.
.,
Sr :i ri:: ::
lE r .4t'-i
.,,1
=
.:.4:j:.: :
6
::,:,,-$*$,
i, I1,',::*t *:,,l.-=y:*s
ft :--r
tt;t+Htl.ffi
a.wIIag Ji :ffi ' .i.,;fu
..* ffi, ;i :*i:,,i*.1,,,1;::i'.; #
l--;;-1 I
F ilt::r
I'^E/
r --.c cdejj
Let us now apply some signals to the filter to see horv it performs.
If you are curious you can also doubie-click on the Filtei icon to see how its Block diagram looks
lil<e
-i i.= i '::ililii" ;i
,il
1:+*:.!4*l:l
ryffiJ..i.
' ', r,l . .,
19 .:'
Llin: !lr':v:r
Output waveform:
Experiment 02:
Butterworth Filter Using Matlab
SOFTWARE REQUIRED:
1. Matlab
INTRODUCTION
Butterworth filters have a magnitude response that is
maximaliy flat in the passband and
monotonic overall' This smoothness comei at the price
of decreasld rolloff steepness. Elliptic
and chebyshev filters generally provide steeper
rolloff for a given filter order.
Syntax:
[b,al : butter(n,Wn)
Ib.a] : butrer(n.Wn,ftype)
[z,p,k] :butter(-.-)
A!gorithm:
Output:
33s
Wavelonn:
EXERCISES
i. r.:
i
Experiment 03:
Chebyshev Type I frlter designUsing Matlab
SOFTWARE REQUIRED:
l. Matlab
INTRODUCTION
Chebyshev Type I filters are equiripple in the passband and monotonic in the stopband. Type i
filters roll off faster than Type II filters, but at the expense of greater deviation from unity in-the
passband.
Syntax:
Algorithms
i. It finds the lowpass anaiog prototype poles, zeros, and gain using the function cheblap.
2. It conveds the poles, zeros, and gain into state-space form.
3. lf required. it uses a state-space transformation to convert the lowpass filter to a highpass,
bandpass, or bandstop filter with the desired frequency constraints.
4. For digital filter design, it uses bilinear to convefl rhe analog filter into a digital filter through
a bilinear transformation with frequency prewarping. Careful frequency adjustment enabies
the -analog f,rlters and the digital filters. to haVd thg same frequencf responSe magnitude
at Wp or wl and w2.
i. It converts the itate-space fllter back to transfer function or zero-po1"-gai, fonn, as required.
MATLAB PROGRAM
Output:
Waveform:
EXERCISES
8
J
INTRODUCTION
chebyshev Type II filters are monotonic in the passband
and equirippie in the stopband. Type tI
filters do not roll off as fast as Type I filters, but are free
of passband rippre.
Syntax:
[b,a] = cheby2(n,Rs,Ws)
[b,a] : cheby2(n.Rs,Ws,ftype)
[z,p,k] : cheby2( )
Aigorithm:
I' It finds the lowpass artalog protorlpe poles. zeros, and gain using the function
cheb2ap.
2. it converts poles, zeros, and gain into state_space form.
3' If required, it uses a state-space transformation to convert the lowpass
filter into a bandpass,
highpass, or bandstop firteri'ith the desired frequency constraints.
+' For digital filter design, it uses bilinear to convert
rhe analog filter inro
a digiral filter throLrgh
a bilinear transformatio, rvith frequency.r,:.*rroiru. carelrl f,requency
adjustrnent rhe
analog filters and the cligital filters to have ttre s=ame
frequencl,response rnagnitude
at Ws or rvl and w2.
5' It converts the state-space filterbackto transfer luncrion
orzero-pole-gain lorm. as required.
MATLAB PROCRAM
Outpur:
Waveform:
EXERCISES
LABORATORY RULES
Experiments: 25%
Viva: 25%
Performance: t0%
Final Examination: 40%
i ..