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.

164 Chapter 5 THE DISCRETE FOURIER TRANSFORM<br />

2<br />

1<br />

0<br />

−1<br />

−2<br />

10<br />

signal x(n), 0 subplot(2,1,1); stem(n,x);<br />

>> title(’signal x(n), 0 X = dft(x,100); magX = abs(X(1:1:51));<br />

>> k = 0:1:50; w = 2*pi/100*k;<br />

>> subplot(2,1,2); plot(w/pi,magX); title(’DTFT Magnitude’);<br />

>> xlabel(’frequency in pi units’)<br />

Now the discrete-time Fourier transform plot in Figure 5.11 clearly shows two<br />

frequencies, which are very close to each other. This is the high-resolution spectrum<br />

of x(n). Note that padding more zeros to the 100-point sequence will result<br />

in a smoother rendition of the spectrum in Figure 5.11 but will not reveal any<br />

new information. Readers are encouraged to verify this.<br />

□<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!