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.

62 Chapter 3 THE DISCRETE-TIME FOURIER ANALYSIS<br />

2<br />

Magnitude Part<br />

2<br />

Real Part<br />

Magnitude<br />

1.5<br />

1<br />

Real<br />

1.5<br />

1<br />

0.5<br />

0 0.5 1<br />

0<br />

frequency in π units<br />

Angle Part<br />

0.5<br />

0 0.5 1<br />

frequency in π units<br />

0<br />

Imaginary Part<br />

Radians<br />

–0.2<br />

–0.4<br />

Imaginary<br />

–0.2<br />

–0.4<br />

–0.6<br />

–0.6<br />

0 0.5 1<br />

frequency in π units<br />

–0.8<br />

0 0.5 1<br />

frequency in π units<br />

FIGURE 3.1 Plots in Example 3.3<br />

The resulting plots are shown in Figure 3.1. Note that we divided the w array by<br />

pi before plotting so that the frequency axes are in the units of π and therefore<br />

easier to read. This practice is strongly recommended.<br />

□<br />

If x(n) isoffinite duration, then MATLAB can be used to compute<br />

X(e jω )numerically at any frequency ω. The approach is to implement<br />

(3.1) directly. If, in addition, we evaluate X(e jω )atequispaced frequencies<br />

between [0,π], then (3.1) can be implemented as a matrix-vector multiplication<br />

operation. To understand this, let us assume that the sequence<br />

x(n) has N samples between n 1 ≤ n ≤ n N (i.e., not necessarily between<br />

[0,N − 1]) and that we want to evaluate X(e jω )at<br />

ω k<br />

△<br />

=<br />

π<br />

M k,<br />

k =0, 1,...,M<br />

which are (M +1)equispaced frequencies between [0,π]. Then (3.1) can<br />

be written as<br />

N∑<br />

X(e jω k<br />

)= e −j(π/M)kn l<br />

x(n l ),<br />

l=1<br />

k =0, 1,...,M<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!