0% found this document useful (0 votes)
42 views7 pages

Midterm Exam 2 SPRING 2020

This document is a midterm exam for an electronics course. It contains instructions for a 90 minute open book exam with 7 pages. The exam contains 3 questions worth a total of 100 points. Question 1 is worth 30 points and involves discrete time signals and the discrete Fourier transform. Question 2 is worth 40 points and involves anti-aliasing filters, sampling, and discrete time signal processing. Question 3 is worth 30 points but the content is not provided. The exam instructs students to show their work and justifications for partial credit.

Uploaded by

Abdulaziz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
42 views7 pages

Midterm Exam 2 SPRING 2020

This document is a midterm exam for an electronics course. It contains instructions for a 90 minute open book exam with 7 pages. The exam contains 3 questions worth a total of 100 points. Question 1 is worth 30 points and involves discrete time signals and the discrete Fourier transform. Question 2 is worth 40 points and involves anti-aliasing filters, sampling, and discrete time signal processing. Question 3 is worth 30 points but the content is not provided. The exam instructs students to show their work and justifications for partial credit.

Uploaded by

Abdulaziz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

Midterm Exam 2 KEY

ELEC456 / DIGITAL SIGNAL PROCESSING


Spring 2020

Date Start time Duration No. of pages


th
Wed. 29 April 2020 12:00 90 minutes 7
INSTRUCTIONS
Open Book and Notebook Exam.
1. Read and observe the following rules:
a) No candidate shall be permitted to enter the examination room after Question Mark
the expiration of one–half hour, or to leave during the first half–hour of
the examination. (1)
b) Candidates are not permitted to ask questions to the invigilators, except / 30
in cases of supposed errors or ambiguities in examination questions.
2. Show all your work. Justify your answers. Partial credit is possible for an
answer, but only if you show the intermediate steps in obtaining the answer.
(2)
/ 40
Caution – Candidates guilty of any of the following, or similar, dishonest
practices shall be immediately dismissed from the examination and shall be (3)
liable to disciplinary action:
▪ Making use of any books, papers or memoranda, cell phones, audio or / 30
visual cassette players or other memory aid devices, other than as
authorized by the examiners.
Total
▪ Speaking or communicating with other candidates. /100
▪ Purposely exposing written papers to the view of other candidates.
▪ The plea of accident or forgetfulness shall not be received.

STUDENT NAME :__________________________________________________________

STUDENT ID :_________________________________

Solve the following questions with justifications


Student Name: Student ID:
-------------------------------------------------------------------------------------------------------------------------------

Question 1: a) 10pts b) 10pts c) 10pts [30pts]


Consider the discrete‐time signal, x[n], as shown below. We sampled its DTFT, X(Ω) , uniformly at every
2π/5 radians to obtain the DFT coefficients, 𝑋[𝑘] = 𝑋(Ω𝑘 ) = 𝑋(2𝜋𝑘/5). The discrete‐time signal, 𝑥̃[n],
is obtained by taking the 5-point inverse DFT, i.e., 𝑥̃[𝑛] = 𝐼𝐷𝐹𝑇(𝑋[𝑘]). So, answer the following with
proper justifications:

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:

------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------

------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------

------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------

------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------

------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------

Page 2 of 7
Student Name: Student ID:
-------------------------------------------------------------------------------------------------------------------------------

Page 3 of 7
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

Solve the following with justifications:


A) What is the maximum sampling period, T1 so that the aliasing can be avoided?
B) With the sampling rate found in part (A), propose a suitable DT filter with a frequency response,
𝐻(Ω) and cut-off frequency, Ω𝐶 , and T2 so that yr(t) = Ks(t) with some constant, K.
C) In order to simplify the discrete time system, we want to remove the down-sampling block (by
M=2) so that y[n]=r[n]. In this case repeat part (B).
D) In the simplified discrete time system (no down-sampling), with some aliasing allowed during
sampling, can yr(t) = Ks(t) still be achieved by using a higher sampling period, T1 than the one
found in part (A)? If so, plot DTFT of x[n], 𝑋(Ω)and 𝑋(𝑓) (in both radians and Hz together in the
same plot) to show the aliasing clearly. Then compute the highest possible T1, the corresponding
T2 and the cut-off frequency of the LPF, Ω𝐶 (in radians) with the corresponding fc (in Hz.). If this
is not possible, justify your answer.

------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------

------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------

Page 4 of 7
Student Name: Student ID:
-------------------------------------------------------------------------------------------------------------------------------

------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------

------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------

------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------

------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------

Page 5 of 7
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]

A) Find the transfer function, H(z). Draw the pole-zero diagram.


B) What kind of a system (filter) is this (IIR or FIR)? Is it causal? Is it stable? Justify.
C) From H[z] find the impulse response, h[n].

------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------

------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------

------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------

------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------

------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------

------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------

------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------

------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------

------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------

Page 6 of 7
Student Name: Student ID:
-------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------

------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------

------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------

Page 7 of 7

You might also like