EEE 4202 SW Open Ended Lab
EEE 4202 SW Open Ended Lab
Part B
Filter approximation is a process in digital signal processing that involves designing a filter with
a frequency response that approximates a desired response. There are several different types of
filter approximations that are commonly used in digital signal processing. Some of the most
common filter approximations include Butterworth, Chebyshev, Elliptic, and Bessel filters. Each
of these filters has its own unique characteristics and trade-offs between frequency response, filter
order, and phase response.
Butterworth Filters: A Butterworth filter is a type of filter that has a maximally flat magnitude
response in the passband. This means that the filter has a uniform gain in the passband and a
smooth transition to the stopband. The Butterworth filter is often used when a flat frequency
response is desired in the passband, and the sharpness of the transition to the stopband is not
critical.
Chebyshev Filters: A Chebyshev filter is a type of filter that has a steeper roll-off than the
Butterworth filter but with a ripple in the passband. The Chebyshev filter is designed to achieve a
sharper transition between the passband and the stopband at the expense of a small amount of
ripple in the passband. The amount of ripple can be controlled by adjusting the filter's
parameters.
There are two types of Chebyshev filters: Type I and Type II. In Type I, the ripple is present in
the passband, while in Type II, the ripple is present in the stopband. Chebyshev filters are often
used when a sharper transition between the passband and stopband is required, such as in audio
processing or data analysis.
Elliptical Filters: An elliptical filter, also known as a Cauer filter, is a type of filter that has the
steepest roll-off among the three filters but with ripples in both the passband and the stopband.
The elliptical filter is designed to achieve the sharpest possible transition between the passband
and the stopband, but with a trade-off of having ripples in both the passband and stopband. The
amount of ripple in both the passband and stopband can be controlled by adjusting the filter's
parameters.
1. The filter cut-off frequency (fc) should be determined in the way exactly like mentioned in
Part A task. Choose sampling frequency = 2*(cutoff frequency). [fc = 2fs]
2. The number of ripples present in the filter should be last digit of your student id. For example,
a student with a student id of 160021055 will have 5 ripples present (in passband/stopband).
Choose the order number (n) of the filter in such a way.
3. Magnitude of ripple factor (Rp) in db should be as followed depending on your section:
Sec A: 1 Sec B: 2 Sec C: 3
Part C
FilterBuilder:
filterBuilder starts an interactive tool for building filters. It relies on the fdesign object-object
oriented filter design paradigm, and is intended to reduce development time during the filter design
process. filterBuilder uses a specification-centered approach to find the best algorithm for the
desired response.
Instructions:
To use filterBuilder, enter filterBuilder at the MATLAB® command line using one
of three approaches:
• Simply enter filterBuilder. MATLAB opens a dialog for you to select a filter
response type. After you select a filter response type, filterBuilder launches the
appropriate filter design dialog box.
• Enter filterBuilder(h), where h is an existing filter object. For example, if h is a
bandpass filter, filterBuilder(h) opens the bandpass filter design dialog box. The
h object must have been created using filterBuilder or using fdesign.
• Enter filterBuilder('response') to replace response with a response method from
the following table. MATLAB opens a filter design dialog that corresponds to the
specified response.
1. Create a IIR filter using the filterbuilder with specifications according to the Part A (Center
Frequency fc should be last 3 digits of student id). Observe the filter’s magnitude response from
View Filter Response option and generate the filter Simulink block from Code Generation tab.
Students with Odd student ID: Will design a Band Stop filter (with any choice of filter
approximation and filter order)
Students with Even student ID: Will design a Band Pass filter (with any choice of filter
approximation and filter order)