Docsity

EE322 Homework Assignment: Digital Signal Processing and DFT Analysis, Assignments of Electrical and Electronics Engineering

Toggle sidebar
bg1
EE322 3rd Homework Assignment
@ Kefu Xue, Ph.D., Sep. 2001 to July 2007
Instructor: Kefu Xue, Ph.D.
1. Given the frequency response of an ideal lowpass filter:
H(ejθ)=½1|θ|≤θc
0θc<|θ|≤π
(a) Using the definition of inverse DtFT to show that the unit impulse response,
h(n)= 1
2πZπ
−π
H(ejθ)ejθndθ is a sinc() function of n.
(b) Sketch both the ideal lowpass filter spectrum H(ejθ)and the unit impulse response
h(n)with θc=π
4.
2. A digital signal processing (DSP) board equipped with an analog to digital converter
(ADC) which has five adjustable sampling frequencies: 6 KHz, 8 KHz, 16 KHz, 44.1
KHz, 48 KHz. The DSP board is used for DFT analysis of various length up to
N=1024.
(a) What is the highest frequency components in an analog signal can be sampled
without aliasing error by this DSP board?
(b) If an analog signal to be analyzed by the DSP board has a bandwidth of 10 KHz,
what is you choice of sampling frequency such that the best (finest) frequency res-
olution can be achieved in the DFT analysis and what is the frequnecy resolution
(Hz)?
(c) If a sampling frequency fs=16KHz and length N=1024are selected, which
frequencies do 32nd, 500rd, and 622nd samples in the DFT sequence represent?
(d) If the sampling frequency of the DSP board is selected to 6 KHz and a 256 points
DFT is performed on an analog signal, what is the record length (duration) of the
analog signal collected for DFT (in second)? To the same data, in order to achieve
a frequency resolution better than 10 Hz, how many zeros have to be padded?
3. Given two samples of the DFT of a real valued sequence x(n),n=0,1,2,3.
X(0) = 4,X(2) = −3
which one of the following sequences be the possible x(n)?FindtheDFTvaluesof
X(1) and X(3) of that sequence.
(a) ©41.5−32−0.5ª
(b) ©72−6.51.5ª
pf3

Partial preview of the text

Download EE322 Homework Assignment: Digital Signal Processing and DFT Analysis and more Assignments Electrical and Electronics Engineering in PDF only on Docsity!

EE322 3rd Homework Assignment

@ Kefu Xue, Ph.D., Sep. 2001 to July 2007

Instructor: Kefu Xue, Ph.D.

  1. Given the frequency response of an ideal lowpass filter:

H(ejθ) =

1 |θ| ≤ θc 0 θc < |θ| ≤ π

(a) Using the definition of inverse DtFT to show that the unit impulse response, h(n) = (^21) π

Z (^) π

−π

H(ejθ)ejθndθ is a sinc() function of n.

(b) Sketch both the ideal lowpass filter spectrum H(ejθ) and the unit impulse response h(n) with θc = π 4.

  1. A digital signal processing (DSP) board equipped with an analog to digital converter (ADC) which has five adjustable sampling frequencies: 6 KHz, 8 KHz, 16 KHz, 44. KHz, 48 KHz. The DSP board is used for DFT analysis of various length up to N = 1024.

(a) What is the highest frequency components in an analog signal can be sampled without aliasing error by this DSP board? (b) If an analog signal to be analyzed by the DSP board has a bandwidth of 10 KHz, what is you choice of sampling frequency such that the best (finest) frequency res- olution can be achieved in the DFT analysis and what is the frequnecy resolution (Hz)? (c) If a sampling frequency fs = 16 KHz and length N = 1024 are selected, which frequencies do 32nd, 500rd, and 622nd samples in the DFT sequence represent? (d) If the sampling frequency of the DSP board is selected to 6 KHz and a 256 points DFT is performed on an analog signal, what is the record length (duration) of the analog signal collected for DFT (in second)? To the same data, in order to achieve a frequency resolution better than 10 Hz, how many zeros have to be padded?

  1. Given two samples of the DFT of a real valued sequence x(n), n = 0, 1 , 2 , 3.

X(0) = 4, X(2) = − 3

which one of the following sequences be the possible x(n)? Find the DFT values of X(1) and X(3) of that sequence.

(a)

(b)

@ Kefu Xue, Ph.D., Sep. 2001 to July 2007 page 2

(c)

(d)

  1. Part of a 4 point DFT, X(k), of a real valued signal sequence is given:

X(0) = 2; X(2) = 0; X(3) = 1 − 2 j

(a) If X(2) represent the frequency component of 50 Hz, what is the sampling fre- quency that is used in sampling signal xa(t)? (Explain) (b) Find the values of x(n), n = 0, 1 , 2 , 3.

  1. Some values of the DFT sequence X(k) of a 20 points real sequence x(n) zero-padded to the nearest power of 2 are known as follows. X(0) = 20, X(3) = −3 + 2j, X(4) = 5 , X(17) = − 4 − 3 j, X(26) = −1 + 4j, and X(25) = j.

(a) What is the length of the DFT sequence X(k)? (b) What is the average value (DC) of the real sequence x(n)? (c) Is there enough information for you to find the values of X(15), X(19), X(5), and X(7)? What are the values that you can decide?

  1. The following problems teach the practical spectrum analysis which helps to learn the effects of DFT length, zero padding and windows. (total 3 figures and 6 subplots)

(a) Take 256 samples of the following signal with a sampling frequency equal to 40 Hz, xa(t) = cos(8πt) + cos(8. 8 πt) + 0.0001 cos(24πt) First, find period N of the sampled signal x(n). Hand sketch the line spectrum Cn of the signal with the correct frequency label. Now you know exact spectrum of the signal. (b) Apply fft() to the first N samples of the signal. It yields the DFS of the signal. Using stem() function to plot the magnitude line spectrum (in dB) with correct frequency axis which should match your hand sketch. (subplot(2,1,1): 1st subplot) (c) Apply fft() to the entire 256 samples of the signal and use plot to display the magnitude spectrum in dB scale with correct frequency axis (Hz). (subplot(2,1,2): 2nd subplot) Explain what you see. (d) Zero padding the sampled signal x(n) to the length 1024 using fft(x,1024) func- tion. Plot the magnitude spectrum in dB scale with correct frequency axis (Hz). (subplot(2,1,1): 2nd figure 3rd subplot) (e) Apply a hanning window, hanning(256), to the signal, x(n), using (.*). Perform fft() to the windowed signal and display the magnitude spectrum in dB scale with correct frequency axis (Hz). (subplot(2,1,2): 2nd figure, 4th subplot)