Docsity

finite length Fourier transform (DFT), Lecture notes of Digital Signal Processing

Partial preview of the text

Download finite length Fourier transform (DFT) and more Lecture notes Digital Signal Processing in PDF only on Docsity!

Chapter 5

Finite-Length

Discrete Transform

§5.2.1 The Discrete Fourier Transfor

m

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

 

§5.2.1 The Discrete Fourier Transfor

m

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

[ ] , 0 1
[ ]

1

0

X k W n N

N

x n

N

k

kn

N

§5.2.1 The Discrete Fourier Transfor

m

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

 

§5.2.1 The Discrete Fourier Transfor

m

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

,

§5.2.1 The Discrete Fourier Transfor

m

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

k N
Y k y n W y m W W

km

N

km

N

N

n

kn

N

§5.2.1 The Discrete Fourier Transfor

m

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

§5.2.1 The Discrete Fourier Transfor

m

Making use of the identity

we get

 

0 , otherwise
, for , an integer

1

0

( )

N k rN r
W

N

n

k n

N

0 otherwis

/ 2 , for

/ 2 , for

[ ]

k N

N k N r

N k r

G k

§5.2.2 Matrix Relations

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

    

§5.2.2 Matrix Relations

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

§5.2.3 DFT Computation Using

MATLAB

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

§5.3.3 DTFT from DFT by

Interpolation

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

[

( ) [ ]

 

 

§5.3.3 DTFT from DFT by

Interpolation

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