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.

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

1<br />

Reconstructed Signal from x2(n) Using Sinc Function<br />

0.5<br />

xa(t)<br />

0<br />

–0.5<br />

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

t in msec.<br />

FIGURE 3.17 Reconstructed signal in Example 3.22<br />

The maximum error between the reconstructed and the actual analog signals is<br />

0.1852, which is significant and cannot be attributed to the nonband-limitedness<br />

of x a(t) alone. From Figure 3.17, observe that the reconstructed signal differs<br />

from the actual one in many places over the interpolated regions. This is the<br />

visual demonstration of aliasing in the time domain.<br />

□<br />

The second MATLAB approach for signal reconstruction is a plotting<br />

approach. The stairs function plots a staircase (ZOH) rendition of the<br />

analog signal, given its samples, while the plot function depicts a linear<br />

(FOH) interpolation between samples.<br />

□ EXAMPLE 3.23 Plot the reconstructed signal from the samples x 1(n) inExample 3.19 using the<br />

ZOH and the FOH interpolations. Comment on the plots.<br />

Solution<br />

Note that in this reconstruction we do not compute x a(t) but merely plot it<br />

using its samples.<br />

% Discrete-time Signal x1(n) : Ts = 0.0002<br />

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

% Plots<br />

>> subplot(2,1,1); stairs(nTs*1000,x);<br />

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

>> title(’Reconstructed Signal from x1(n) using zero-order-hold’); hold on<br />

>> stem(n*Ts*1000,x); hold off<br />

%<br />

% Discrete-time Signal x2(n) : Ts = 0.001<br />

>> Ts = 0.001; n = -5:1:5; nTs = n*Ts; x = exp(-1000*abs(nTs));<br />

% Plots<br />

>> subplot(2,1,2); plot(nTs*1000,x);<br />

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

>> title(’Reconstructed Signal from x2(n) using zero-order-hold’); hold on<br />

>> stem(n*Ts*1000,x); hold off<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!