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.

System Representation in the z-Domain 121<br />

a function called freqz for this computation, which uses the preceding<br />

interpretation. In its simplest form, this function is invoked by<br />

[H,w] = freqz(b,a,N)<br />

which returns the N-point frequency vector w and the N-point complex<br />

frequency response vector H of the system, given its numerator and denominator<br />

coefficients in vectors b and a. The frequency response is evaluated<br />

at N points equally spaced around the upper half of the unit circle.<br />

Note that the b and a vectors are the same vectors we use in the filter<br />

function or derived from the difference equation representation (4.19).<br />

The second form<br />

[H,w] = freqz(b,a,N,’whole’)<br />

uses N points around the whole unit circle for computation.<br />

In yet another form<br />

H = freqz(b,a,w)<br />

it returns the frequency response at frequencies designated in vector w,<br />

normally between 0 and π. Itshould be noted that the freqz function can<br />

also be used for numerical computation of the DTFT of a finite-duration,<br />

causal sequence x(n). In this approach, b = x and a = 1.<br />

□ EXAMPLE 4.11 Given a causal system<br />

y(n) =0.9y(n − 1) + x(n)<br />

a. Determine H(z) and sketch its pole-zero plot.<br />

b. Plot |H(e jω )| and ̸ H(e jω ).<br />

c. Determine the impulse response h(n).<br />

Solution<br />

The difference equation can be put in the form<br />

a. From (4.21)<br />

y(n) − 0.9y(n − 1) = x(n)<br />

H(z) =<br />

1<br />

; |z| > 0.9<br />

1 − 0.9z−1 since the system is causal. There is one pole at 0.9 and one zero at the origin.<br />

We will use MATLAB to illustrate the use of the zplane function.<br />

>> b = [1, 0]; a = [1, -0.9]; zplane(b,a)<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!