digital signal processing. discrete fourier transform inverse discrete fourier transform

11
Digital Signal Processing

Upload: jemima-norton

Post on 18-Jan-2016

236 views

Category:

Documents


6 download

TRANSCRIPT

Page 1: Digital Signal Processing. Discrete Fourier Transform Inverse Discrete Fourier Transform

Digital Signal Processing

Page 2: Digital Signal Processing. Discrete Fourier Transform Inverse Discrete Fourier Transform

Discrete Fourier TransformDiscrete Fourier Transform

NNekxN

kxDFnx

NNenxkX

N

k

Nknj

NknjN

n

,,2,1,0,][1

][

,,2,1,0,

0

/21

/21

0

Discrete Fourier Transform

Inverse Discrete Fourier Transform

Page 3: Digital Signal Processing. Discrete Fourier Transform Inverse Discrete Fourier Transform

Properties of DFTProperties of DFT

• DFT has the same number of datapoints as the signal

• The signal is assumed to be periodic with a period of N

• X[k] corresponds to the amplitude of the signal at frequency f=k/(NT)

• The frequency resolution of the DFT is f=1/(NT), i.e. the # of samples determines the frequency resolution

Page 4: Digital Signal Processing. Discrete Fourier Transform Inverse Discrete Fourier Transform

Steps for Calculating DFTSteps for Calculating DFT

• Determine the resolution required for the DFT, establish a lower limit on the # of samples required, N.

• Determine the sampling frequency to avoid aliasing

• Accumulate N samples

• Calculate DFT

Page 5: Digital Signal Processing. Discrete Fourier Transform Inverse Discrete Fourier Transform

Matlab Example of FFTMatlab Example of FFT

Page 6: Digital Signal Processing. Discrete Fourier Transform Inverse Discrete Fourier Transform

Digital FilteringDigital Filtering

a1*y(n) = b1*x(n) +b2*x(n-1) + ... + bnb+1x(n-nb) - a2*y(n-1) - ... – ana+1*y(n-na)

A=[a1, a2, ..., ana+1]

B=[b1, b2, ..., bnb+1]

X=[x(n-nb), ..., x(n-1), x(n)]: input signal

Filter parameters

Y=[y(n-na), ..., y(n-1), y(n)]: filtered signal

Page 7: Digital Signal Processing. Discrete Fourier Transform Inverse Discrete Fourier Transform

Ideal FiltersIdeal Filters

• Low pass filter

• High pass filter

• Bandpass filter

• Bandstop filter

Page 8: Digital Signal Processing. Discrete Fourier Transform Inverse Discrete Fourier Transform

Common FiltersCommon Filters

• Butterworth filter: N

c

H2

1

1

• Chebyshev filter:

cn

cn

nC

C

H

1

22

coscos,

1

1

Page 9: Digital Signal Processing. Discrete Fourier Transform Inverse Discrete Fourier Transform

Comparison of Common FiltersComparison of Common Filters

Page 10: Digital Signal Processing. Discrete Fourier Transform Inverse Discrete Fourier Transform

MATLAB example of FilteringMATLAB example of Filtering

Page 11: Digital Signal Processing. Discrete Fourier Transform Inverse Discrete Fourier Transform

MATLAB Example of UndersamplingMATLAB Example of Undersampling