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.

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

1<br />

Analog Signal<br />

xa(t)<br />

0.8<br />

0.6<br />

0.4<br />

0.2<br />

0<br />

−5 −4 −3 −2 −1 0 1 2 3 4 5<br />

t in msec.<br />

2<br />

Continuous-time Fourier Transform<br />

Xa(jW)*1000<br />

1.5<br />

1<br />

0.5<br />

0<br />

−2 −1.5 −1 −0.5 0 0.5 1 1.5 2<br />

Frequency in KHz<br />

FIGURE 3.11 Plots in Example 3.18<br />

MATLAB script:<br />

% Analog Signal<br />

>> Dt = 0.00005; t = -0.005:Dt:0.005; xa = exp(-1000*abs(t));<br />

% Discrete-time Signal<br />

>> Ts = 0.0002; n = -25:1:25; x = exp(-1000*abs(n*Ts));<br />

% Discrete-time Fourier transform<br />

>> K = 500; k = 0:1:K; w = pi*k/K;<br />

>> X = x * exp(-j*n’*w); X = real(X);<br />

>> w = [-fliplr(w), w(2:K+1)]; X = [fliplr(X), X(2:K+1)];<br />

>> subplot(2,1,1);plot(t*1000,xa);<br />

>> xlabel(’t in msec.’); ylabel(’x1(n)’)<br />

>> title(’Discrete Signal’); hold on<br />

>> stem(n*Ts*1000,x); gtext(’Ts=0.2 msec’); hold off<br />

>> subplot(2,1,2);plot(w/pi,X);<br />

>> xlabel(’Frequency in pi units’); ylabel(’X1(w)’)<br />

>> title(’Discrete-time Fourier Transform’)<br />

In the top plot in Figure 3.12, we have superimposed the discrete signal x 1(n)<br />

over x a(t) toemphasize the sampling. The plot of X 2(e jω ) shows that it is a<br />

scaled version (scaled by F s = 5000) of X a(jΩ). Clearly there is no aliasing.<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!