Tutorial 7
Tutorial 7
Tutorial 7
(Sep 19, 2019)
1 − e− j2ω
7. Consider and LTI system with frequency response H (e jω ) = where r = 0.9. The
1 + r2 e− j2ω
input to this system is cos nπ/8 + cos nπ/2. The output can be expressed as A1 cos(nπ/8 +
θ1 ) + A2 cos(nπ/2 + θ2 ). Determine Ai and θi for i = 1, 2.
8. Consider a system obtained by cascading two LTI systems with frequency responses
2 − e− jω
H1 (e jω ) =
1 + 0.5e− jω
and
1
H2 (e jω ) =
1 − 0.5e− jω
+ 0.25e− j2ω
(a) Find the difference equation describing the overall system. (b) Determine the impulse re-
sponse of the overall system.
1
G (e jω ) =
1 − 2r (cos θ ) e− jω + r2 e− j2ω
θ, ω ∈ [0, 2π ). In particular, observe what happens when (a) r is close to unity versus well
away, and (b) θ is close to 0 (or π) versus π/2 (or 3π/2). If you consider the denominator as a
polynomial in e jω , where are its roots? Can you relate the peak locations of the DTFT and the
root locations? Although ω is a continuous variable, on a computer you will have to discretize
it, which is typically done by taking N uniformly spaced points in [−π, π ).
10. Computer assignment Study the M ATLAB function freqz. Consider the G (e jω ) given in the
previous problem. Let G = freqz(1, [1, -2*r*cos(theta), r*r], 4000). Plot the mag-
nitude and phase of G and compare with the result of the previous experiment. Also plot
20*log10(abs(G)) and compare it with it linear-scale counterpart.
↓
11. Computer assignment Let x [n] = {1, 2, 3, 4, 5}. Numerically evaluate the sequence’s DTFT at
501 equispaced points over the interval [0, π ].
12. Computer assignment Numerically verify the validity of the shift property as follows: (i) create
a vector of length 11 with random entries using the rand function; (ii) compute its DTFT at 501
equispaced points over the interval [0, π ]; (iii) evaluate numerically e− j2ω X (e jω ) over the same
set of points; (iv) form a shifted sequence by adding two zeros at the beginning of the vector
created in (i); (v) compute the shifted vector’s DTFT at 501 equispaced points over the interval
[0, π ]; (vi) finally compute the maximum absolute error of the difference vector and confirm
that the value is extremely small.
13. Computer assignment Consider the LTI system specified by the difference equation y[n] =
0.8 y[n − 1] + x [n]. Let the input to this system be x [n] = cos(0.05πn) u[n].
(a) Generate 100 samples of the input x [n] and store it in the vector x.
(b) Understand M ATLAB’s filter command and obtain the output y using y =
filter(b,a,x); (the vectors b and a contain the numerator and denominator coefficients
of the rational transfer function H (e jω )).
(c) Plot x and y in a figure one below the other (use the command subplot). Observe the
initial cycles and compare them with the later ones; what are the main differences? Can
you explain why the initial part is different?
(d) Measure the peak amplitude of the output and the delay between the input and the out-
put in the steady-state portion. Compare the measured delay with the theoretical values
(assume the input to be cos(0.05πn) for the theoretical computation).