Docsity

Fourier Analysis using DFT-Digital Signal Processing-Lecture Slides, Slides of Digital Signal Processing

Partial preview of the text

Download Fourier Analysis using DFT-Digital Signal Processing-Lecture Slides and more Slides Digital Signal Processing in PDF only on Docsity!

Fourier Analysis Using the DFT

Quote of the Day

On two occasions I have been asked, “Pray, Mr.

Babbage, if you put into the machine wrong figures,

will the right answers come out?” I am not able

rightly to apprehend the kind of confusion of ideas

that could provoke such a question.

Charles Babbage

Content and Figures are from Discrete-Time Signal Processing, 2e by Oppenheim, Shafer, and Buck,

Fourier Analysis of Signals Using DFT

  • One major application of the DFT: analyze signals
  • Let’s analyze frequency content of a continuous-time signal
  • Steps to analyze signal with DFT
    • Remove high-frequencies to prevent aliasing after sampling
    • Sample signal to convert to discrete-time
    • Window to limit the duration of the signal
    • Take DFT of the resulting signal

Example Cont’d

Sampled

discrete-

time signal

Frequency

response of

window

Windowed

and

sampled

Fourier

transform

Effect of Windowing on Sinusoidal Signals

  • The effects of anti-aliasing filtering and sampling is known
  • We will analyze the effect of windowing
  • Choose a simple signal to analyze this effect: sinusoids
  • Assume ideal sampling and no aliasing we get
  • And after windowing we have
  • Calculate the DTFT of v[n] by writing out the cosines as

sc  t  A 0 cos 0 t  0   A 1 cos 1 t 1 

x  n  A 0 cos 0 n 0   A 1 cos 1 n  1 

v  n  A 0 w n cos 0 n 0  A 1 w n cos 1 n 1 

 

 

 

 

1 j j n 1 j j n

j 0 j j n 0 j j n

0 j j n 0 j j n 1 j j n 1 j j n

1 1 1 1

0 0 0 0

0 0 0 0 1 1 1 1

e W e 2

A

e We 2

A

e We 2

A

e We 2

A

V e

wne e 2

A

wne e 2

A

wne e 2

A

wne e 2

A

vn

    

     

         

Example Cont’d

  • Magnitude of the DTFT of the sampled signal
  • We expect to see dirac function at input frequencies
  • Due to windowing we see, instead, the response of the window
  • Note that both tones will affect each other due to the smearing
    • This is called leakage: pretty small in this example

Example Cont’d

  • If we the input tones are close to each other
  • On the left: the tones are so close that they have considerable

affect on each others magnitude

  • On the right: the tones are too close to even separate in this

case

  • They cannot be resolved using this particular window

The Effect of Spectral Sampling

  • DFT samples the DTFT with N equally spaced samples at
  • Or in terms of continuous-frequency
  • Example: Signal after windowing

k 0,1,...,N- 1 N

2 k k 

k 0 , 1 ,...,N/ 2 NT

2 k Ωk 

 

 

0 else

n 0 n 63 15

n 0. 75 cos 14

cos vn

Example Cont’d

  • Note the peak of the DTFTs

are in between samples of the DFT

  • DFT doesn’t necessary reflect

real magnitude of spectral

peaks

k k 8. 5333 64

2

15

4

k k 4. 5714 64

2

14

2

2

1

 

 

  

 

 

  

Example Cont’d

  • In this case N samples

cover exactly 4 and 8

periods of the tones

  • The samples correspond

to the peak of the lobes

  • The magnitude of the

peaks are accurate

  • Note that we don’t see

the side lobes in this

case

Example: DFT Analysis with Kaiser Window

  • The windowed signal is given as
  • Where wK[n] is a Kaiser window with β=5.48 for a relative side

lobe amplitude of - 40 dB

  • The windowed signal

      (^)  

 n 15

n 0. 75 w n cos 14

v n wKn cos K