Professional Documents
Culture Documents
Assignment 2 Ee 684 A
Assignment 2 Ee 684 A
Due on 25/08/2017
Assignment #2
0 𝑛<0
𝜋
𝑥(𝑛) = {cos ( 𝑛) 0 ≤ 𝑛 ≤ 7
4
0 𝑛≥8
0 𝑛<0
𝜋
𝑦(𝑛) = {cos ( 𝑛) 0 ≤ 𝑛 ≤ 7
3
0 𝑛≥8
a) Compute the 8-point DFT of 𝑥(𝑛) and sketch a plot of the magnitude of the DFT.
b) Repeat (a) for the sequence 𝑦(𝑛).
c) Compare your answers from parts (a) and (b). Explain the differences, if any.
2. Consider the real-valued signal 𝑠(𝑡) whose Fourier transform is given below. Sketch the DTFT of
the sequence resulting from sampling 𝑠(𝑡) at 8 kSa/s. Be sure to properly label your axes.
a) Construct the 128-point sequence 𝑥[𝑛] to be a cosine wave of 0.125 cycles per sample plus 0.5
times a sine wave of 0.25 cycles per sample. Using MATLAB, compute the DFT of the sequence 𝑥[𝑛].
Plot the magnitude of the DFT.
b) Pad 896 zeros at the end of the 128-point sequence and use MATLAB to compute the 1024-point
DFT of the zero-padded sequence. Does the 1024-point DFT look the same as the 128-point DFT of
part (a)? If not, how is it different?
c) Now find the 1024-point DFT of a pulse sequence with width 128 (𝑥[𝑛] = for 𝑛 =
0,1,2, … . . ,127 and 0 otherwise). How would this DFT explain the differences between (a) and (b)?
5. Consider the continuous-time signal
𝑥(𝑡) = cos(10𝜋𝑡) + sin(3𝜋𝑡 + 𝜋/2).
Let T be the sampling interval. We uniformly sample 𝑥(𝑡) to obtain the sequence 𝑥[𝑛𝑇].
a) What is the largest value of T that we can use to sample the signal and still achieve perfect
reconstruction?
b) Suppose we sample with T=1/30. Illustrate the CTFT of 𝑥(𝑡), CTFT of sampled signal, and DTFT of
sampled sequence in the interval from -1/2T to 1/2T. Label correctly the axes.
c) Repeat (b) for T=1/20.
7. Use MATLAB for this problem. Consider a discrete time IID Gaussian WSS process with zero mean
and unit variance, denoted by 𝑤[𝑛]. Let 𝑥[𝑛] = 𝑤[𝑛] + 0.5𝑤[𝑛 − 1] + 0.25𝑤[𝑛 − 2]. Generate a
realization of length 256 of 𝑥[𝑛].
8. Using MATLAB, generate at least three realizations of discrete laser phase noise process modelled
as a Weiner process discussed in class. Assume that the zero mean IID 𝑤[𝑛] in the Weiner process
have zero mean and variance 𝜋. Plot them on the same graph and comment on your results.