Filter Design: Lab Manual
Filter Design: Lab Manual
LAB MANUAL
B.E (ECE), IV/I
PKC
LABORATORY RULES
Reports should include:
Name and Roll number of student
Name, purpose, theory and the procedure of experiment
Grading will be as follows:
Experiments:
Viva:
Performance:
Final Examination:
25%
25%
10%
40%
List of Experiments:
I.
II.
III.
IV.
Experiment 01:
Let us now apply some signals to the filter to see how it performs.
If you are curious you can also double-click on the Filter icon to see how its Block diagram looks
like
Output waveform:
Experiment 02:
Butterworth Filter Using Matlab
SOFTWARE REQUIRED:
1. Matlab
INTRODUCTION
Butterworth filters have a magnitude response that is maximally flat in the passband and
monotonic overall. This smoothness comes at the price of decreased rolloff steepness. Elliptic
and Chebyshev filters generally provide steeper rolloff for a given filter order.
Syntax:
[b,a] = butter(n,Wn)
[b,a] = butter(n,Wn,ftype)
[z,p,k] = butter( ___ )
Algorithm:
1. Find the lowpass analog prototype poles, zeros, and gain using the function buttap.
2. Convert the poles, zeros, and gain into statespace form.
3. If required, use a statespace transformation to convert the lowpass filter into a bandpass,
highpass, or bandstop filter with the desired frequency constraints.
4. For digital filter design, use bilinear to convert the analog filter into a digital filter through a
bilinear transformation with frequency prewarping.
Careful frequency adjustment enables the analog filters and the digital filters to have the same
frequency response magnitude at Wn or at w1 and w2.
MATLAB PROGRAM
Output:
Waveform:
EXERCISES
I.
II.
III.
IV.
Experiment 03:
Chebyshev Type I filter design Using Matlab
SOFTWARE REQUIRED:
1. 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:
[b,a] = cheby1(n,Rp,Wp)
[b,a] = cheby1(n,Rp,Wp,ftype)
[z,p,k] = cheby1(___)
Algorithms
1.
2.
3.
It finds the lowpass analog prototype poles, zeros, and gain using the function cheb1ap.
It converts the poles, zeros, and gain into state-space form.
If 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 convert the analog filter into a digital filter
through a bilinear transformation with frequency prewarping. Careful frequency adjustment
enables the analog filters and the digital filters to have the same frequency response
magnitude at Wp or w1 and w2.
5.
It converts the state-space filter back to transfer function or zero-pole-gain form, as
required.
MATLAB PROGRAM
Output:
Waveform:
EXERCISES
I.
II.
Experiment 04:
Chebyshev Type II filter design Using Matlab
SOFTWARE REQUIRED:
1. Matlab
INTRODUCTION
Chebyshev Type II filters are monotonic in the passband and equiripple in the stopband. Type II
filters do not roll off as fast as Type I filters, but are free of passband ripple.
Syntax:
[b,a] = cheby2(n,Rs,Ws)
[b,a] = cheby2(n,Rs,Ws,ftype)
[z,p,k] = cheby2(___)
Algorithm:
1.
2.
3.
It finds the lowpass analog prototype poles, zeros, and gain using the function cheb2ap.
It converts poles, zeros, and gain into state-space form.
If required, it uses a state-space transformation to convert the lowpass filter into a
bandpass, highpass, or bandstop filter with the desired frequency constraints.
4.
For digital filter design, it uses bilinear to convert the analog filter into a digital filter
through a bilinear transformation with frequency prewarping. Careful frequency adjustment
the analog filters and the digital filters to have the same frequency response magnitude
at Ws or w1 and w2.
5.
It converts the state-space filter back to transfer function or zero-pole-gain form, as
required.
MATLAB PROGRAM
Output:
Waveform:
EXERCISES
I.
II.