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.

Properties of the Discrete Fourier Transform 177<br />

Hence<br />

x 1(n) 4○ x 2(n) ={15, 12, 9, 14}<br />

• Frequency-domain approach: In this approach we first compute 4-point DFTs<br />

of x 1(n) and x 2(n), multiply them sample by sample, and then take the<br />

inverse DFT of the result to obtain the circular convolution.<br />

DFT of x 1(n)<br />

DFT of x 2(n)<br />

Now<br />

x 1(n) ={1, 2, 2, 0} =⇒ X 1(k) ={5, −1 − j2, 1, −1+j2}<br />

x 2(n) ={1, 2, 3, 4} =⇒ X 2(k) ={10, −2+j2, −2, −2 − j2}<br />

Finally after IDFT,<br />

X 1(k) · X 2(k) ={50, 6+j2, −2, 6 − j2}<br />

which is the same as before.<br />

x 1(n) 4○ x 2(n) ={15, 12, 9, 14}<br />

□<br />

Similar to the circular shift implementation, we can implement the<br />

circular convolution in a number of different ways. The simplest approach<br />

would be to implement (5.39) literally by using the cirshftt function<br />

and requiring two nested for...end loops. Obviously, this is not efficient.<br />

Another approach is to generate a sequence x ((n − m)) N<br />

for each n in<br />

[0,N − 1] as rows of a matrix and then implement (5.39) as a matrixvector<br />

multiplication similar to our dft function. This would require<br />

one for...end loop. The following circonvt function incorporates these<br />

steps.<br />

function y = circonvt(x1,x2,N)<br />

% N-point circular convolution between x1 and x2: (time-domain)<br />

% -------------------------------------------------------------<br />

% [y] = circonvt(x1,x2,N)<br />

% y = output sequence containing the circular convolution<br />

% x1 = input sequence of length N1 = the length of x1’)<br />

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