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.

Solutions of the Difference Equations 133<br />

MATLAB script:<br />

>> b = [1,1,1]/3; a = [1,-0.95,0.9025];<br />

>> Y = [-2,-3]; X = [1,1]; xic=filtic(b,a,Y,X)<br />

xic =<br />

1.4742 2.1383<br />

>> bxplus = [1,-0.5]; axplus = [1,-1,1]; % X(z) transform coeff.<br />

>> ayplus = conv(a,axplus) % Denominator of Yplus(z)<br />

ayplus =<br />

1.0000 -1.9500 2.8525 -1.8525 0.9025<br />

>> byplus = conv(b,bxplus)+conv(xic,axplus) % Numerator of Yplus(z)<br />

byplus =<br />

1.8075 0.8308 -0.4975 1.9717<br />

>> [R,p,C] = residuez(byplus,ayplus)<br />

R =<br />

0.0584 + 3.9468i 0.0584 - 3.9468i 0.8453 + 2.0311i 0.8453 - 2.0311i<br />

p =<br />

0.5000 - 0.8660i 0.5000 + 0.8660i 0.4750 + 0.8227i 0.4750 - 0.8227i<br />

C =<br />

[]<br />

>> Mp = abs(p), Ap = angle(p)/pi % Polar form<br />

Mp =<br />

1.0000 1.0000 0.9500 0.9500<br />

Ap =<br />

-0.3333 0.3333 0.3333 -0.3333<br />

Hence<br />

Y + (z) =<br />

=<br />

Now from Table 4.1<br />

1.8075 + 0.8308z −1 − 0.4975z −2 +1.9717z −3<br />

1 − 1.95z −1 +2.8525z −2 − 1.8525z −3 +0.9025z −4<br />

0.0584 + j3.9468 0.0584 − j3.9468<br />

+<br />

1 − e −jπ/3 z −1 1 − e jπ/3 z −1<br />

+<br />

0.8453 + j2.0311 0.8453 − j2.0311<br />

+<br />

1 − 0.95e jπ/3 z−1 1 − 0.95e −jπ/3 z −1<br />

y(n) =(0.0584 + j3.9468) e −jπn/3 +(0.0584 − j3.9468) e jπn/3<br />

+(0.8453 + j2.031) (0.95) n e jπn/3 +(0.8453 − j2.031) (0.95) n e −jπn/3<br />

=0.1169 cos(πn/3) + 7.8937 sin(πn/3)<br />

+(0.95) n [1.6906 cos(πn/3) − 4.0623 sin(πn/3)] , n ≥ 0<br />

The first two terms of y(n) correspond to the steady-state response, as well as<br />

to the particular response, while the last two terms are the transient response<br />

(and homogeneous response) terms.<br />

To solve this example using MATLAB, we will need the filtic function,<br />

which we have already used to determine the x IC(n) sequence. The solution<br />

will be a numerical one. Let us determine the first 8 samples of y(n).<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!