02.10.2019 Views

UploadFile_6417

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

The Discrete Fourier Transform 159<br />

Magnitude of the DFT: N=4<br />

4<br />

3<br />

|X(k)|<br />

2<br />

1<br />

0<br />

−1<br />

200<br />

0 0.5 1 1.5 2 2.5 3 3.5 4<br />

k<br />

Angle of the DFT: N=4<br />

100<br />

Degrees<br />

0<br />

−100<br />

−200<br />

0 0.5 1 1.5 2 2.5 3 3.5 4<br />

k<br />

FIGURE 5.5 The DFT plots of Example 5.6<br />

This is a very important operation called a zero-padding operation. This operation<br />

is necessary in practice to obtain a dense spectrum of signals as we shall<br />

see. Let X 8 (k) bean8-point DFT, then<br />

X 8 (k) =<br />

7∑<br />

n=0<br />

x(n)W nk<br />

8 ; k =0, 1,...,7; W 8 = e −jπ/4<br />

In this case the frequency resolution is ω 1 =2π/8 =π/4.<br />

MATLAB script:<br />

>> x = [1,1,1,1, zeros(1,4)]; N = 8; X = dft(x,N);<br />

>> magX = abs(X), phaX = angle(X)*180/pi<br />

magX =<br />

4.0000 2.6131 0.0000 1.0824 0.0000 1.0824 0.0000 2.6131<br />

phaX =<br />

0 -67.5000 -134.9810 -22.5000 -90.0000 22.5000 -44.9979 67.5000<br />

Hence<br />

X 8 (k) ={4, 2.6131e −j67.5◦ , 0, 1.0824e −j22.5◦ , 0, 1.0824e j22.5◦ ,<br />

↑<br />

0, 2.6131e j67.5◦ }<br />

Copyright 2010 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).<br />

Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!