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.

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

Solution<br />

Rewrite the difference equation as y(n) − 0.8y(n − 1) = x(n).<br />

a. Using (3.21), we obtain<br />

H(e jω )=<br />

1<br />

1 − 0.8e −jω (3.22)<br />

b. In the steady state the input is x(n) =cos(0.05πn) with frequency ω 0 =<br />

0.05π and θ 0 =0 ◦ . The response of the system is<br />

Therefore<br />

H(e j0.05π )=<br />

1<br />

=4.0928e−j0.5377<br />

1 − 0.8e−j0.05π y ss(n) =4.0928 cos(0.05πn − 0.5377) = 4.0928 cos [0.05π(n − 3.42)]<br />

This means that at the output the sinusoid is scaled by 4.0928 and shifted<br />

by 3.42 samples. This can be verified using MATLAB.<br />

>> subplot(1,1,1)<br />

>> b = 1; a = [1,-0.8];<br />

>> n=[0:100];x = cos(0.05*pi*n);<br />

>> y = filter(b,a,x);<br />

>> subplot(2,1,1); stem(n,x);<br />

>> xlabel(’n’); ylabel(’x(n)’); title(’Input sequence’)<br />

>> subplot(2,1,2); stem(n,y);<br />

>> xlabel(’n’); ylabel(’y(n)’); title(’Output sequence’)<br />

From the plots in Figure 3.8, we note that the amplitude of y ss(n) isapproximately<br />

4. To determine the shift in the output sinusoid, we can compare<br />

zero crossings of the input and the output. This is shown in Figure 3.8, from<br />

which the shift is approximately 3.4 samples.<br />

□<br />

In Example 3.15 the system was characterized by a 1st-order difference<br />

equation. It is fairly straightforward to implement (3.22) in<br />

MATLAB as we did in Example 3.13. In practice the difference equations<br />

are of large order and hence we need a compact procedure to implement<br />

the general expression (3.21). This can be done using a simple matrixvector<br />

multiplication. If we evaluate H(e jω )atk =0, 1,...,K equispaced<br />

frequencies over [0,π], then<br />

∑ M<br />

H(e jω k m=0<br />

)=<br />

b m e −jω km<br />

1+ ∑ N<br />

l=1 a , k =0, 1,...,K (3.23)<br />

l e −jω kl<br />

If we let {b m }, {a l } (with a 0 = 1), {m =0,...,M}, {l =0,...,N}, and<br />

{ω k } be arrays (or row vectors), then the numerator and the denominator<br />

of (3.23) become<br />

b exp(−jm T ω); a exp(−jl T ω)<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!