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.

244 Chapter 6 IMPLEMENTATION OF DISCRETE-TIME FILTERS<br />

FIGURE 6.20<br />

All-pole lattice filter<br />

Each stage of the filter has an input and output that are related by the<br />

order-recursive equations [23]:<br />

f N (n) =x(n)<br />

f m−1 (n) =f m (n) − K m g m−1 (n − 1), m = N, N − 1,...,1<br />

g m (n) =K m f m−1 (n)+g m−1 (n − 1), m = N, N − 1,...,1<br />

(6.23)<br />

y(n) =f 0 (n) =g 0 (n)<br />

where the parameters K m , m =1, 2,...,M − 1, are the reflection coefficients<br />

of the all-pole lattice and are obtained from (6.20) except for K 0 ,<br />

which is equal to 1.<br />

6.4.4 MATLAB IMPLEMENTATION<br />

Since the IIR lattice coefficients are derived from the same (6.20) procedure<br />

used for an FIR lattice filter, we can use the dir2latc function in<br />

MATLAB. Care must be taken to ignore the K 0 coefficient in the K array.<br />

Similarly, the latc2dir function can be used to convert the lattice {K m }<br />

coefficients into the direct form {a N (m)}, provided that K 0 =1is used<br />

as the first element of the K array. The implementation of an IIR lattice<br />

is given by (6.23), and we will discuss it in the next section.<br />

□ EXAMPLE 6.9 Consider an all-pole IIR filter given by<br />

Determine its lattice structure.<br />

1<br />

H(z) =<br />

1+ 13<br />

24 z−1 + 5 8 z−2 + 1 3 z−3<br />

Solution<br />

MATLAB script:<br />

>> a=[1, 13/24, 5/8, 1/3]; K=dir2latc(a)<br />

K =<br />

1.0000 0.2500 0.5000 0.3333<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!