02.10.2019 Views

UploadFile_6417

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

166 Chapter 5 THE DISCRETE FOURIER TRANSFORM<br />

to compute its DFT. Therefore we use the modulo-N operation on the<br />

argument (−n) and define folding by<br />

{<br />

x(0), n =0<br />

x ((−n)) N<br />

=<br />

(5.28)<br />

x(N − n), 1 ≤ n ≤ N − 1<br />

This is called a circular folding. Tovisualize it, imagine that the sequence<br />

x(n) iswrapped around a circle in the counterclockwise direction<br />

so that indices n =0and n = N overlap. Then x((−n)) N can be<br />

viewed as a clockwise wrapping of x(n) around the circle; hence the<br />

name circular folding. In MATLAB the circular folding can be achieved<br />

by x=x(mod(-n,N)+1). Note that the arguments in MATLAB begin<br />

with 1. The DFT of a circular folding is given by<br />

{<br />

X(0), k =0<br />

DFT [x ((−n)) N<br />

]=X ((−k)) N<br />

=<br />

(5.29)<br />

X(N − k), 1 ≤ k ≤ N − 1<br />

□ EXAMPLE 5.9 Let x(n) =10(0.8) n , 0 ≤ n ≤ 10.<br />

a. Determine and plot x ((−n)) 11<br />

.<br />

b. Verify the circular folding property.<br />

Solution<br />

a. MATLAB script:<br />

>> n = 0:100; x = 10*(0.8) .^ n; y = x(mod(-n,11)+1);<br />

>> subplot(2,1,1); stem(n,x); title(’Original sequence’)<br />

>> xlabel(’n’); ylabel(’x(n)’);<br />

>> subplot(2,1,2); stem(n,y); title(’Circularly folded sequence’)<br />

>> xlabel(’n’); ylabel(’x(-n mod 10)’);<br />

The plots in Figure 5.12 show the effect of circular folding.<br />

b. MATLAB script:<br />

>> X = dft(x,11); Y = dft(y,11);<br />

>> subplot(2,2,1); stem(n,real(X));<br />

>> title(’Real{DFT[x(n)]}’); xlabel(’k’);<br />

>> subplot(2,2,2); stem(n,imag(X));<br />

>> title(’Imag{DFT[x(n)]}’); xlabel(’k’);<br />

>> subplot(2,2,3); stem(n,real(Y));<br />

>> title(’Real{DFT[x((-n))11]}’); xlabel(’k’);<br />

>> subplot(2,2,4); stem(n,imag(Y));<br />

>> title(’Imag{DFT[x((-n))11]}’); xlabel(’k’);<br />

The plots in Figure 5.13 verify the property.<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!