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 Series 143<br />

denote the complex exponential term, we express (5.3) and (5.2) as<br />

˜X(k) = △ DFS[˜x(n)] = N−1 ∑<br />

n=0<br />

˜x(n) △ = IDFS[ ˜X(k)] = 1 N<br />

˜x(n)W nk<br />

N<br />

N−1 ∑<br />

k=0<br />

˜X(k)W −nk<br />

N<br />

: Analysis or a<br />

DFS equation<br />

: Synthesis or an inverse<br />

DFS equation<br />

(5.5)<br />

□ EXAMPLE 5.1 Find DFS representation of the periodic sequence<br />

˜x(n) ={...,0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3,...}<br />

↑<br />

Solution The fundamental period of this sequence is N = 4. Hence W 4 = e −j 2π 4 =<br />

−j. Now<br />

Hence<br />

˜X(k) =<br />

3∑<br />

n=0<br />

˜x(n)W nk<br />

4 , k =0, ±1, ±2,...<br />

Similarly,<br />

˜X(0) =<br />

3∑<br />

0<br />

˜x(n)W 0·n<br />

4 =<br />

3∑<br />

˜x(n) =˜x(0) + ˜x(1) + ˜x(2) + ˜x(3) =6<br />

0<br />

˜X(1) =<br />

˜X(2) =<br />

˜X(3) =<br />

3∑<br />

˜x(n)W4 n =<br />

0<br />

3∑<br />

0<br />

3∑<br />

0<br />

˜x(n)W 2n<br />

4 =<br />

˜x(n)W 3n<br />

4 =<br />

3∑<br />

˜x(n)(−j) n =(−2+2j)<br />

0<br />

3∑<br />

˜x(n)(−j) 2n =2<br />

0<br />

3∑<br />

˜x(n)(−j) 3n =(−2 − 2j)<br />

0<br />

□<br />

5.1.1 MATLAB IMPLEMENTATION<br />

A careful look at (5.5) reveals that the DFS is a numerically computable<br />

representation. It can be implemented in many ways. To compute each<br />

sample ˜X(k), we can implement the summation as a for...end loop.<br />

To compute all DFS coefficients would require another for...end loop.<br />

This will result in a nested two for...end loop implementation. This is<br />

clearly inefficient in MATLAB. An efficient implementation in MATLAB<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!