




























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





























































































Finite-Length
Discrete Transform
Definition - The simplest relation between a l
ength- N sequence x [ n ], defined for 0 ≤ n ≤ N -1,
and its DTFT X (e
j ω
) is obtained by uniformly
sampling X (e
j ω
) on the ω-axis between 0≤ω≤
2π at ω
k
= 2π k / N , 0≤ k ≤ N -
From the definition of the DTFT we thus hav
e
[ ] ( ) [ ] , 0 1
1
0
2 /
2 /
X k X e x n e k N
N
n
j k N
k N
j
The inverse discrete Fourier transform
(IDFT) is given by
To verify the above expression we multiply
both sides of the above equation by and
sum the result from n = 0 to n = N -
W
n
N
1
0
X k W n N
x n
N
k
kn
N
resulting in
1
0
1
0
( )
1
0
1
0
( )
1
0
1
0
1
0
[ ]
1
[ ]
1
[ ]
1
[ ]
N
k
N
k
K n
N
N
n
N
k
K n
N
N
n
n
N
N
k
kn
N
N
n
n
N
X k W
N
X k W
N
X k W W
N
x n W
Example – Consider the length- N sequence
Its N -point DFT is given by
0 1 1
1 0
n N
n
,
,
x [ n ]
[ ] [ ] [ 0 ] 1 0 1
0
1
0
X k x n W x W k N
N
N
n
kn
N
,
Example – Consider the length- N sequence
Its N -point DFT is given by
0 , 0 1 , 1 1
1 ,
[ ]
n m m n N
n m
y n
1
0
km
N
km
N
N
n
kn
N
The N -point DFT of g [ n ] is thus given by
0 1
2
1
[ ] [ ]
1
0
1
0
( ) ( )
1
0
k N
W W
G k g n W
N
n
N
n
r k n
N
r k n
N
N
n
kn
N
Making use of the identity
we get
1
0
( )
N
n
k n
N
0 otherwis
/ 2 , for
/ 2 , for
k N
N k N r
N k r
G k
and D
N
is the N×N DFT matrix given by
2
( 1 ) 2 ( 1 ) ( 1 )
2 4 2 ( 1 )
1 2 ( 1 )
1
1
1
1 1 1 1
N
N
N
N
N
N
N
N N N
N
N N N
N
W W W
W W W
W W W
D
Likewise, the IDFT relation given by
where is the N×N DFT matrix
can be expressed in matrix form as
D N
1
[ ] , 0 1
1
[ ]
1
0
X K W n N
N
x n
N
k
kn
N
x D X
N
1
The functions to compute the DFT and the
IDFT are fft and ifft
These functions make use of FFT algorithm
s which are computationally highly efficient c
ompared to the direct computation
Programs 5_1.m and 5_2.m illustrate the use
of these functions
§5.2.3 DFT Computation Using
MATLAB
Example –a Program 5_3.m can be used to
compute the DFT and the DTFT of the sequ
ence x [ n ]=cos(6π n /16), 0≤ n ≤
as shown below
indicates DFT samples
Thus
S
N
n
j k N n
N
k
j n
N
n
kn
N
N
k
N
n
j j n
e
W e
e e
X k
N
X k
N
X x n
1
0
( 2 / )
1
0
1
0
1
0
1
0
[ ]
1
[ ] ]
1
[
( ) [ ]
To develop a compact expression for the
sum S, let
Then
From the above
j ( 2 k / N )
r e
1
0
N
n
n
S r
1 1
1 1
1
0
1
1
1
N N
N
n
n
N
N
n
N
n
n n
r r S r
rS r r r