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.

172 Chapter 5 THE DISCRETE FOURIER TRANSFORM<br />

Therefore we first convert x(n) into its periodic extension ˜x(n), and<br />

then shift it by m samples to obtain<br />

˜x(n − m) =x ((n − m)) N<br />

(5.35)<br />

This is called a periodic shift of ˜x(n). The periodic shift is then converted<br />

into an N-point sequence. The resulting sequence<br />

˜x(n − m)R N (n) =x ((n − m)) N<br />

R N (n) (5.36)<br />

is called the circular shift of x(n). Once again to visualize this, imagine<br />

that the sequence x(n)iswrapped around a circle. Now rotate the circle<br />

by k samples and unwrap the sequence from 0 ≤ n ≤ N − 1. Its DFT<br />

is given by<br />

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

R N (n)] = W km<br />

N X(k) (5.37)<br />

□ EXAMPLE 5.11 Let x(n) =10(0.8) n , 0 ≤ n ≤ 10 be an 11-point sequence.<br />

a. Sketch x((n + 4)) 11R 11(n), that is, a circular shift by 4 samples toward the<br />

left.<br />

b. Sketch x((n − 3)) 15R 15(n), that is, a circular shift by 3 samples toward the<br />

right, where x(n) isassumed to be a 15-point sequence.<br />

Solution<br />

We will use a step-by-step graphical approach to illustrate the circular shifting<br />

operation. This approach shows the periodic extension ˜x(n) =x((n)) N of x(n),<br />

followed by a linear shift in ˜x(n) toobtain ˜x(n − m) =x((n − m)) N , and finally<br />

truncating ˜x(n − m) toobtain the circular shift.<br />

a. Figure 5.16 shows four sequences. The top-left shows x(n), the bottom-left<br />

shows ˜x(n), the top-right shows ˜x(n+4), and finally the bottom-right shows<br />

x((n + 4)) 11R 11(n). Note carefully that as samples move out of the [0,N− 1]<br />

window in one direction, they reappear from the opposite direction. This is<br />

the meaning of the circular shift, and it is different from the linear shift.<br />

b. In this case the sequence x(n) istreated as a 15-point sequence by padding<br />

4 zeros. Now the circular shift will be different than when N = 11. This<br />

is shown in Figure 5.17. In fact the circular shift x ((n − 3)) 15<br />

looks like a<br />

linear shift x(n − 3).<br />

□<br />

To implement a circular shift, we do not have to go through the<br />

periodic shift as shown in Example 5.11. It can be implemented directly<br />

in two ways. In the first approach, the modulo-N operation can be used<br />

on the argument (n − m) inthe time domain. This is shown below in the<br />

cirshftt function.<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!