0% found this document useful (0 votes)
110 views

Tutorial 7

This document contains a tutorial on digital signal processing concepts including the discrete-time Fourier transform (DTFT) and linear time-invariant (LTI) systems. It provides examples of determining the DTFT of sequences, analyzing LTI system properties from frequency responses, deriving difference equations and impulse responses, and numerically computing the DTFT using MATLAB. Computer assignments are also included to analyze DTFT properties, verify the shift property, and simulate an LTI system.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
110 views

Tutorial 7

This document contains a tutorial on digital signal processing concepts including the discrete-time Fourier transform (DTFT) and linear time-invariant (LTI) systems. It provides examples of determining the DTFT of sequences, analyzing LTI system properties from frequency responses, deriving difference equations and impulse responses, and numerically computing the DTFT using MATLAB. Computer assignments are also included to analyze DTFT properties, verify the shift property, and simulate an LTI system.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

EE5140: Introduction to Digital Signal Processing

Tutorial 7
(Sep 19, 2019)

1. Determine and sketch the DTFT Xi (ω ) of xi [n]:



(a) x1 [n] = {1, 1, 1, 1, 1}

(b) x2 [n] = {1, 0, 1, 0, 1, 0, 1, 0, 1}

(c) x3 [n] = {1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1}
Is there any relation between X1 (ω ), X2 (ω ), and X3 (ω )?
2. We are given the following information about an LTI system with frequency response H (e jω ):
(a) the system is causal, (b) (b) H (e jω ) = H ∗ (e− jω ), and (c) the DTFT of h[n + 1] is real-valued.
Based on the information given, is the filter IIR or FIR? Justify your answer.
3. Consider a discrete-time LTI system with impulse response h[n] = (1/2)n u[n]. Using DTFT
properties determine the response to each of the following input signals: (a) x [n] = (n +
1) (1/4)n u[n], and (b) x [n] = (−1)n .
4. Consider a causal LTI system described by the difference equation
1
y [ n ] + y [ n − 1] = x [ n ]
2
Determine the frequency response H (e jω ) of the above system.
5. The input to a cascade of two LTI systems is x [n] = cos(0.6πn) + 3δ[n − 5] + 2. The first system
is an ideal lowpass filter with ωc = π/2. The second system’s input-output relationship is
y[n] = w]n] − w[n − 1], where w[n] is the output of the first system. Find the output y[n].
 n  n
4 4
6. A causal and stable LTI system accepts the input u[n] and produces the output n u [ n ].
5 5
(a) Determine the system’s frequency response H (e jω ).
(b) Determine the system’s input-output difference equation.

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.

EE5140 Intro DSP Page 1 of 2 CSR


9. Computer assignment Plot the real/imaginary parts, as well as magnitude/phase for various
values of r and θ of the following DTFT:

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).


EE5140 Intro DSP Page 2 of 2 19.09.2019

You might also like