Chapter5 PDF
Chapter5 PDF
Duration: 2 hrs
Outline:
1. Review of DTFT of DT periodic signals
2. DFT and Inverse DFT
3. Frequency resolution
4. DFT properties
Procedure to calculate DTFT of
periodic signals
Step 1:
Start with x0(n) – one period of x(n), with zero everywhere else
Step 2:
Find the DTFT X0(Ω) of the signal x0[n] above
Step 3:
Find X0(Ω) at N equally spacing frequency points X0(k2π/N)
Step 4:
2 2 2
Obtain the DTFT of x(n): X ()
N
k X 0 (k N ) ( k N )
Example of calculating DTFT of
periodic signals
0 1 2 3
3
X 0 () x0 (n)e jn
1 e j
2e j 3
n 0
Duration: 2 hrs
Outline:
1. Review of DTFT of DT periodic signals
2. DFT and Inverse DFT
3. Frequency resolution
4. Applications
DFT to the rescue!
Discrete time
signal x(n)
window
Discrete time
signal x0(n)
Finite length
Building the DFT formula (cont)
Continuous time
signal x(t)
sample
Discrete time
signal x(n)
N 1
window X 0 () 0
x [ n
n
]e jn
0
x [
n 0
n ]e jn
DTFT
Discrete time
signal x0(n)
Finite length
Building the DFT formula (cont)
Continuous time
signal x(t)
Discrete Fourier Transform DFT X(k)
Discrete + periodic with period N
sample
Sample
Discrete time at N
signal x(n) values
around
window the unit
circle N=8
DTFT
Discrete time X0(Ω)
signal x0(n) Continuous + periodic
Finite length with period 2π
DFT and inverse DFT formulas
2
j
Notation: WN e N
k = 0 X(k) = X(0) = N
k ≠ 0 X(k) = 0
Examples of calculation DFT and IDFT
Columns 5 through 8
Duration: 2 hrs
Outline:
1. Review of DTFT of DT periodic signals
2. DFT and Inverse DFT
3. Frequency resolution
4. DFT properties
Frequency resolution of the DFT
fs 2
f
N N
The choice of N determines the resolution of the
frequency spectrum, or vice-versa
0
0 0.5 1 1.5 2 2.5 3 3.5 4
0
0 1 2 3 4 5 6 7 8 9 10
0
0 5 10 15 20 25 30
Examples of N = 15 and N = 30
6
0
0 0.5 1 1.5 2 2.5 3 3.5 4
0
0 5 10 15 20 25 30
0
0 10 20 30 40 50 60
Lecture 9
DFT and Inverse DFT
Duration: 2 hrs
Outline:
1. Review of DTFT of DT periodic signals
2. DFT and Inverse DFT
3. Frequency resolution
4. DFT properties
Circular shift property of the DFT
DFT
x[n m] W X[k ] km
x(n)
Circular
shift xp(n)
property
of the
DFT xp(n+2)
x(n+2)
y[n] x1[n] * x2 [n] x [ p]x [n p]
p
1 2
N 1
y[n] x1[n] x2 [n] x1[ p]x2 [n p]mod N
p 0
0 1
2 3 1 4 2 0 2 4
2 3
3 3
y(0) = 16 y(1) = 18
Example (cont)
1 1
2 3
2 1 3 4 2 2 0 4
0 1
3 3
y(2) = 16 y(3) = 10
Another method to calculate circular
convolution
Zero padding
x1(n) x’1(n) DFT
(N2-1) zeros
N1 samples IDFT
Zero padding x1(n)*x2(n)
x2(n) x’2(n) DFT
(N1-1) zeros
N2 samples
Example of calculation the linear convolution
x1(n) = [ 1 2 3 4 ]; x2(n) = [ 0 1 2 3 ]
x’1(n) = [ 1 2 3 4 0 0 0 ]; x’2(n) = [ 0 1 2 3 0 0 0 ]
X’1(k) = [ 10, -2.0245-j6.2240, 0.3460+j2.4791, 0.1784-
j2.4220, 0.1784+j2.4220, 0.3460-j2.4791, -2.0245-j6.2240 ];
X’2(k) = [ 6, -2.5245-j4.0333, -0.1540+j2.2383, -0.3216-
j1.7950, -0.3216+j1.7950, -0.1540-j2.2383, -2.5245+j4.0333];
Y’(k) = [ 60, -19.9928+j23.8775, -5.6024+j0.3927, -5.8342-
j0.8644, -4.4049+j0.4585, -5.6024-j0.3927, -19.9928
+j23.8775 ]
IDFT{Y’(k)} = y’(n) = [ 0 1 4 10 16 17 12 ]
HW
Prob.1
Compute the DFT with N time samples:
(a ) x[n ] [n ]
(b) x[n ] a {u[n ] u[n N]}
n
1 n even
(c) x[n ]
0 n odd 0 n N 1
HW
Prob.2
Given the two four-point sequences:
Prob.3
Given signals below and their DFT-5
1, 0 n 3
x[n ]
0, 4 n 7
Express the DFTs of the signals below in terms of X(k).
1, n 0
(a ) x1[n ] 0, 1 n 4
1, 5 n 7
0, 0 n 1
(b) x 2 [n ] 1, 2 n 5
0, 6 n 7
HW
Duration: 2 hrs
Outline:
1. What is FFT?
2. The decomposition-in-time Fast Fourier
Transform algorithm
Recall DFT and IDFT definition
N 1
X[k ] x[n ]WNnk 0 k N 1
n 0 2
j
1 N 1 WN e N
N
log N complex multiplications
2
N 2 2
Comparing DFT and FFT efficiency
10000
Complex multiplication numbers
8000
6000
4000
2000
DIT-FFT
0
N
-2000
0 10 20 30 40 50 60 70 80 90 100
Computation of DFT
Some properties of W nk
N can be exploited
W
k ( N n )
N
W N
kn
W knN , complex conjugate symmetry
*
k ( n N ) (k N )n
W N W N
kn
W N
, periodicit y in n and k
W N , if n odd
kn
N N
W
2 kn kn
W N
N
2
Lecture 10
Fast Fourier Transform (FFT)
Duration: 2 hrs
Outline:
1. What is FFT?
2. The decomposition-in-time Fast Fourier
Transform algorithm
DIT-FFT with N as a 2-radix number
X [k ] x[n]W
neven
kn
x[n]W
nodd
kn
DIT-FFT (cont)
N 1 N 1
m0 m0
N 1 N 1
2 2
= x[2 m](W 2 mk
) W k
x[2 m 1](W )
2 mk
m0 m0
W e
2
N
j2 / N 2
e j 2 /( N / 2 )
WN / 2
8 N 2 complex multiplications
2 2 2
8-point 0
H[0]
W0 W
DFT N = 2
FFT H[1]
W2
(cont) W0 H[2]
W4
DFT N = 2
H[3]
W6
2-point FFT
Wr - r+N/2
W 1
Wr+N/2 = -Wr
8-point
FFT
N
log N complex multiplications
2
N 2 2
HW
Prob.6
(a) Draw an eight-point DIT FFT signal-flow diagram, and use
it to solve for the DFT of the sequence x(n)
x(n) = (0.5) n [u(n) – u(n-8)]