Description
Problem 2.1 (DTFT Basics)
A) Consider the complex exponential signal π₯[π] = π'(.*+,-. to answer each of the
following questions:
a) Is the signal π₯[π] periodic? If yes, what is its fundamental period?
b) Plot the absolute value of π₯[π] as a function of n.
c) Specify a numerical value of π( such that π₯[π(] = β1.
B) Determine the DTFT π(π’3) of π₯[π] = πΏ[π β 3] by using π(π’3)=β π₯[π]π 9 8’3. .:89
where πΏ[π] is the discrete-time unit impulse.
C) Calculate the DTFT of each of the following signals using π(π’3)=β π₯[π]π 9 8’3. .:89 and
plot |π<π’3=| as a function of π.
a) π₯[π] = π’[π + 2] β π’[π β 3] , where π’[π] is the discrete-time unit step.
b) π₯[π] = π’[π] β π’[π β 5] , where π’[π] is the discrete-time unit step.
c) π₯[π] = π’[π] β π’[π β 4] , where π’[π] is the discrete-time unit step.
Problem 2.2 (Analog Sampling)
Suppose is a real-valued speech-signal whose CTFT is and it is known that
for . Let be the output of an analog sampler where T
represents the sampling interval. Answer the following questions about , the DTFT of
, for the specified values of T.
(a) For what values of is guaranteed to be zero if secs. Justify your answer.
(b) For what values of is guaranteed to be zero if secs. Justify your answer.
(c) For what values of is guaranteed to be zero if secs. Justify your answer.
x(t) X ( jΟ)
| X ( jΟ)|= 0 |Ο |β₯10,000Ο x[n] = x(nT )
X (e jΟ )
x[n]
Ο X (e jΟ ) T = 0.0001
Ο X (e jΟ ) T = 0.00005
Ο X (e jΟ ) T = 0.00001
Problem 2.3 (Inverse DTFT and DTFT Properties)
A) For each DTFT given below, compute the corresponding signal using π₯[π] = H
I- β« π(π’3)π’3. –
8- ππ and plot |π₯[π]| as a function of n.
a) π<π’3= = β 2ππΏ(π β 0.5π β 2ππ) 9
O:89
b) π<π’3= = β {ππΏ(π + 0.5π β 2ππ) + ππΏ(π β 0.5π β 2ππ)} 9
O:89
B) Suppose that the input π₯[π] to a digital circuit is related to the output π¦[π] of that
digital circuit through the following difference equation:
π¦[π] = 0.5π¦[π β 1] + π₯[π]
Determine the mathematical relationship between π(π’3) and π(π’3).
C) If π₯[π] is a real-valued signal with π<π'(.I,-= = 1 + π, use π<π’3= = β π₯[π]π 9 8’3. .:89
to determine the value of π(π8′(.I,-). This result shows that any algorithm for
determining the DTFT of a real-valued signal need not directly calculate the DTFT for
negative frequencies.
Problem 2.4 (Digital Sampling)
Suppose the discrete-time signal π₯[π] is a real-valued signal. We perform digital downsampling
by a factor of 3 on π₯[π] to obtain the signal π¦[π]. The digital downsampling uses a digital antialiasing filter with input π₯[π] and output π[π]. The signal π[π] then undergoes a sampling rate
change that reduces the sampling rate by a factor of 3.
(a) Draw and label the ideal frequency response of the digital antialiasing that should be
used in the digital sampling process. Justify your answer.
(b) Is the ideal digital antialiasing filter causal? Justify your answer.
(c) Are there any values of π for which πΊ(π’3) is guaranteed to be zero regardless of what
π<π’3= looks like? Justify your answer.
(d) Determine the values of the constants πΌ, π½, and Ξ³ such that
3π<π’3= = πΊ<π'(38c= + πΊ<π'(38d= + πΊ<π'(38e=
Justify your answer.
(e) Is the signal π[π] guaranteed to be reconstructable from the signal π¦[π]? Justify your
answer.
(f) Is the signal π₯[π] guaranteed to be reconstructable from the signal π[π]? Justify your
answer.
Experiential DSP Exercise 02
Part A: Plot and Observe!
1. Place audio.wav from HW02 assignment in your current MATLAB folder (check with
pwd or use the Current Folder pane).
2. Read the audio and sampling rate using the audioread command. (Note that this
command gives you two outputs, x and F.)
3. Following the instructions of Assignment 1, plot the waveform of the audio signal.
4. Observe that the audio signal is roughly periodic. What approximately is the period?
Part B: DTFT in MATLAB
In this part, we want to learn how the fft command in MATLAB works and how to analyze its
output.
1. The fft command takes two inputs. x, which is the signal that you get from the previous
part, and n, which is the number of samples. The fft command computes n uniformly
spaced samples every
I-
. from π = 0 to π = 2π of the discrete-time Fourier transform
(DTFT).
2. Set nfft_1 = 512 and nfft_2 = 1024.
3. Get X_1 = fft(x, nfft_1) and Get X_2 = fft(x, nfft_2).
4. Create two stem plots: stem(20*log10(abs(X_1)) and
stem(20*log10(abs(X_2)). Save these figures as figure1 and figure2,
respectively. Note that the x-axis in these figures represents the frequency, which here spans
from 0 to 2π.
5. In each figure, find the middle point and explain how the portion to the left of the middle
point and the portion to the right of the middle point are related to each other.
6. Observe the two saved figures and determine how the samples in figure1 are just a subset
of the samples in figure2. Specify how the index of a sample in figure1 maps to the
corresponding index in figure2.

