Midterm - Exam - 2 - SPRING - 2020 KEY
Midterm - Exam - 2 - SPRING - 2020 KEY
Midterm - Exam - 2 - SPRING - 2020 KEY
STUDENT ID :_________________________________
a) Why DFT coefficients cannot approximate the DTFT spectrum properly? What kind of
problem occurs?
b) Plot 𝑥̃[n].
c) How to solve the problem in (a) so that the DFT coefficients can be used to recover:
i) some part of the signal from the DFT coefficients, 𝑋[𝑘] = 𝑋(Ω𝑘 ) = 𝑋(2𝜋𝑘/5)?
ii) all of the signal with a new sampling scheme?
Sol:
a) Because the recovered signal, 𝑥̃[𝑛], is periodic with period, N=5 samples, the IDFT operation will
cause “Time Aliasing” which will alias x[0,1] with x[5,6].
b)
c) Time aliasing can be avoided by:
i) Applying the 5-point time window to the original signal before taking DTFT and then sampling
the DTFT uniformly at every 2π/5 radians to obtain the DFT coefficients, 𝑋[𝑘] = 𝑋(Ω𝑘 ) = 𝑋(2𝜋𝑘/5).
ii) Sampling the DTFT uniformly at every 2π/7 radians to obtain the DFT coefficients, 𝑋[𝑘] =
𝑋(Ω𝑘 ) = 𝑋(2𝜋𝑘/7).
------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------
Page 2 of 5
Student Name: Student ID:
-------------------------------------------------------------------------------------------------------------------------------
Question 2: (A-D) 10pts [40pts]
For the DT system shown below the input signal, xn(t) is corrupted by a high frequency additive noise, n(t)
i.e., xn(t)=s(t) + n(t) where s(t) is a bandlimited audio signal. The magnitude spectrum of both the signal
and noise, S(f) and N(f), are plotted below. Since the input signal is not bandlimited due to the noise, a
continuous-time anti-aliasing filter, Haa(f) is used before sampling (magnitude spectrum shown below).
xn (t) xc (t ) x[n] r[n] y[n ] yr (t)
Haa(w) C/D H () 2 D/C
T1 T2
S( f ) N( f )
f f
-10KHz 10KHz -10KHz 10KHz
Haa(f ) H ()
1
f
-20KHz -10KHz 10KHz 20KHz − C C
Sol:
A) 1/ T1=2x20KHz = 40KHz
B) 1/T2=20KHz and the discrete time filter is a LPF shown below with cut-off frequency, Ωc = π/2.
H ()
− C C
C) Same LPF as in part (B) and 1/ T1=1/ T2=40KHz
D) 1/ T1=1/ T2=30KHz and aliasing is obvious as shown below. In this case the discrete time filter is
a LPF shown above with cut-off frequency, Ωc = 2π/3 rad. or fc=10 KHz.
Page 3 of 5
Student Name: Student ID:
-------------------------------------------------------------------------------------------------------------------------------
X()
------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------
Page 4 of 5
Student Name: Student ID:
-------------------------------------------------------------------------------------------------------------------------------
Question 3: (a-c) 10pts [30pts]
For the system described by the difference equation:
y[n] = x[n - 1] + 4x[n-2] - 5y[n - 1] - 6y[n-2]
Sol.
A) Take Z transform of both sides:
(1 + 5𝑧 −1 + 6𝑧 −2 )𝑌(𝑧) = 𝑧 −1 (1 + 4𝑧 −1 )𝑋(𝑧)
𝑌(𝑧) 𝑧 −1 (1 + 4𝑧 −1 ) (𝑧 + 4) (𝑧 + 4)
𝐻[𝑧] = = −1 −2
= 2 =
𝑋(𝑧) 1 + 5𝑧 + 6𝑧 𝑧 + 5𝑧 + 6 (𝑧 + 2)(𝑧 + 3)
o x-3 x-2 0
1 3
-4
B) This is an IIR filter due to the feedback from the past output samples. It is a causal system (current
output depends on current and past input values). It is not stable (unit circle is not is not in ROC).
C)
𝑧 −1 (1 + 4𝑧 −1 )
𝐻(𝑧) = −1 −2
= 𝑧 −1 𝐻1 (𝑧)
1 + 5𝑧 + 6𝑧
(1 + 4𝑧 −1 ) 2 1
𝐻1 (𝑧) = = −
−1
1 + 5𝑧 + 6𝑧 −2
1 + 2𝑧 −1 1 + 3𝑧−1
Taking the inverse Z-transform by inspection and delay 1 sample:
Page 5 of 5