H1Pzplot - JPG.: Coe 121 Programming Exercise 06: Frequency-Domain Analysis of Lti Systems 2 Semester 2018-2019
H1Pzplot - JPG.: Coe 121 Programming Exercise 06: Frequency-Domain Analysis of Lti Systems 2 Semester 2018-2019
INSTRUCTIONS
• This is an individual programming exercise. Any clarifications or questions must be
directed to the instructor or student assistant.
• Save your main code in an M-file with the file name CoE121_PE06_<LastName>.m.
Submit your code together with the following files.
o Documentation containing all the answers for each question. Save it as a pdf
file named CoE121_PE06_<LastName>_docu.pdf”.
o The required functions and images.
o Note: A missing file will incur a deduction of 10.
• The deadline of this exercise is on March 4, 4:00 PM. A 10-point deduction per day
will be incurred for late submissions.
Since the LTI system will affect the input’s different frequency components differently, it
can be considered as a frequency-shaping filter. The effect on the system on different
frequencies can be analyzed by looking at its poles and zeros.
In this exercise, we are going to investigate the effect of poles and zeros in the
frequency response, and use it in the design of simple digital filters.
1. (5 POINTS) Plot the magnitude and phase response of the system 𝐻1 (𝑧) at 𝑎 = 0.9,
using the function freqz(). Use the following lines of code.
Describe the system in terms of its magnitude response. What kind of filter is it?
2. (5 POINTS) Generate the pole-zero plot of the system 𝐻1(𝑧) using the zplane()
function in MATLAB. Verify the location of the pole and the zero. Save your figure as
<LastName>_H1PZPlot.jpg.
Also generate the pole-zero plots for each value of a. Relate the frequency response
to the position of the pole. Write down your observations.
5. (10 POINTS) Plot the magnitude and phase response of both 𝐻1 (𝑧) and 𝐻2 (𝑧)
(superimposed) and save it as <LastName>_H1n2FreqRep.jpg. Compare the two
systems. What is the effect of adding a zero at that value of ω?
6. (10 POINTS) Generate the pole-zero plot and the frequency response of the following
system. Use a = 0.9.
1 − 𝑎 1 − 𝑧 −1
𝐻3 (𝑧) = ̇
2 1 + 𝑎𝑧 −1
Note that the system differs from 𝐻2 (𝑧) by a few changes in sign. Where are the zero
and pole now located and how does this affect the frequency response? What kind of
filter is 𝐻3(𝑧)?
7. (10 POINTS) Vary the value of a and observe its effect on the frequency response.
Use a = 0.9, a = 0.7, and a = 0.5. Superimpose the magnitude response plots in one
subplot, and all phase response plots in another. Properly label your plots and add
legends if necessary. Save your figure as <LastName>_H3FreqRep_VaryA.jpg.
Also generate the pole-zero plots for each value of a. Relate the frequency response
to the position of the pole. Write down your observations.
8. (5 POINTS) Based on the exercise above, summarize the design of lowpass and
highpass filters in terms of pole and zero locations.
BANDPASS FILTERS
In this part of the exercise we are going to use the system described by the following
function.
(𝑧 − 1)(𝑧 + 1)
𝐻4 (𝑧) = 𝐺
(𝑧 − 𝑗𝑟)(𝑧 + 𝑗𝑟)
1. (10 POINTS) Determine G so that the system will have unity gain at the location of
the poles. Express it as a function of r.
2. (10 POINTS) Suppose we want the system to have a magnitude response of 1/√2 at
𝜔 = 3𝜋/5. What is the value of r?