$30
EE3660 Intro. to Digital Signal Processing
Homework Assignment #3: Chap. 5-6
I Paper Assignment (74%)
1. (6%) Determine the system function, magnitude response, and phase response of the following
systems and use the pole-zero pattern to explain the shape of their magnitude response:
(a) y[n] = 1
4 (π₯π₯[ππ] + π₯π₯[ππ − 1]) − 1
4 (π₯π₯[ππ − 2] + π₯π₯[ππ − 3])
(b) y[n] = π₯π₯[ππ] − π₯π₯[ππ − 4] + 0.6561π¦π¦[ππ − 4]
2. (12%) Consider a periodic signal
x[n] = sin(0.1ππππ) +
1
3 sin(0.3ππππ) +
1
5 sin(0.5ππππ)
For each of the following systems, determine if the system imparts (i) no distortion, (ii) magnitude
distortion, and/or (iii) phase (or delay) distortion.
(a) h[n] = {1ππ=0, −2,3, −4,0,4, −3,2, −1}
(b) y[n] = 10π₯π₯[ππ − 10]
3. (12%) An economical way to compensate for the droop distortion in S/H DAC is to use an
appropriate digital compensation filter prior to DAC.
(a) Determine the frequency response of such an ideal digital filter π»π»ππ(ππππππ) that will perform
an equivalent filtering given by following π»π»ππ(ππππ)
(b) One low-order FIR filter suggested in Jackson (1996) is
π»π»πΉπΉπΉπΉπΉπΉ(π§π§) = − 1
16 +
9
8 π§π§−1 − 1
16 π§π§−2
Compare the magnitude response of π»π»πΉπΉπΉπΉπΉπΉ(ππππππ) with that of π»π»ππ(ππππππ) above.
(c) Another low-order IIR filter suggested in Jackson (1996) is
π»π»πΌπΌπΌπΌπΌπΌ(π§π§) = 9
8 + π§π§−1
Compare the magnitude response of π»π»πΌπΌπΌπΌπΌπΌ(ππππππ) with that of π»π»ππ(ππππππ) above.
4. (12%) Consider the following continuous-time system
π»π»(s) = π π 4 − 6π π 3 + 10π π 2 + 2π π − 15
π π 5 + 15π π 4 + 100π π 3 + 370π π 2 + 744π π + 720
(a) Show that the system H(s) is a nonminimum phase system.
(b) Decompose H(s) into the product of minimum phase component π»π»ππππππ(π π ) and an all pass
component π»π»ππππ(π π ).
(c) Briefly plot the magnitude and phase responses of H(s) and π»π»ππππππ(π π ) and explain your plots.
(d) Briefly plot the magnitude and phase responses of π»π»ππππ(π π ).
5. (12%) We want to design a second-order IIR filter using pole-zero placement that satisfies the
following requirements: (1) the magnitude response is 0 at ω1 = 0 and ω3 = π (2) The
maximum magnitude is 1 at ω2,4 = ± π
4 and (3) the magnitude response is approximately 1
√2
at
frequencies ω2,4 ± 0.05
(a) Determine locations of two poles and two zeros of the required filter and then compute its
system function H(z).
(b) Briefly graph the magnitude response of the filter.
(c) Briefly graph phase and group-delay responses.
6. (8%) The following signals π₯π₯ππ(π‘π‘) is sampled periodically to obtained the discrete-time signal
x[ππ]. For each of the given sampling rates in πΉπΉπ π Hz or in T period, (i) determine the spectrum
X(eiω) of x[ππ]; (ii) plot its magnitude and phase as a function of ω in ππππππ
π π π π π π and as a function of
F in Hz; and (iii) explain whether π₯π₯ππ(π‘π‘) can be recovered from x[ππ].
(a) π₯π₯ππ(π‘π‘) = 5ei40t + 3e−i70t , with sampling period T = 0.01, 0.04, 0.1
(b) π₯π₯ππ(π‘π‘) = 3 + 2 sin(16ππππ) + 10 cos(24ππππ) , with sampling rate πΉπΉπ π = 30, 20, 15 Hz.
7. (12%) An 8-bit ADC has an input analog range of ±5 volts. The analog input signal is
π₯π₯ππ(π‘π‘) = 2 cos(200ππππ) + 3 sin(500ππππ)
The converter supplies data to a computer at a rate of 2048 bits/s. The computer, without
processing, supplies these data to an ideal DAC to form the reconstructed signal π¦π¦ππ(π‘π‘). Determine:
(a) the quantizer resolution (or step),
(b) the SQNR in dB,
(c) the folding frequency and the Nyquist rate.
II Program Assignment (26%)
8. (4%) Compute and plot the phase response using the functions freqz, angle, phasez, unwrap, and
phasedelay for the following systems:
(a) y[n] = π₯π₯[ππ − 15]
(b) π»π»(π§π§) = 1+1.655π§π§−1+1.655π§π§−2+π§π§−3
1−1.57π§π§−1+1.264π§π§−2−0.4π§π§−3
9. (6%) According to problem 2 in paper assignment, plot magnitude response, phase response and
group-delay response for each of the systems.
10. (6%) MATLAB provides a function called polystab that stabilizes the given polynomial with
respect to the unit circle, that is, it reflects those roots which are outside the unit-circle into those
that are inside the unit circle but with the same angle. Using this function, convert the following
systems into minimum-phase and maximum-phase systems. Verify your answers using a polezero plot for each system(plot minimum-phase and maximum-phase systems for each question).
(a) H(z) = π§π§2+2π§π§+0.75
π§π§2−0.5π§π§
(b) H(z) = 1−2.4142π§π§−1+2.4142π§π§−2−π§π§−3
1−1.8π§π§−1+1.62π§π§−2+0.729π§π§−3
11. (10%) Signal xc(t) = 5 cos(200πt + π6 ) + 4 sin(300πt) is sampled at a rate of Fs = 1 kHz to obtain
the discrete-time signal x[n].
(a) Determine the spectrum X(ejω) of x[n] and plot its magnitude as a function of ω in ππππππ
π π π π π π π π π π π π
and as a function of F in Hz. Explain whether the original signal xc(t) can be recovered from
x[n].
(b) Repeat part (a) for Fs = 500 Hz.
(c) Repeat part (a) for Fs = 100
(d) Comment on your results.