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.

Lattice Filter Structures 247<br />

function [K,C] = dir2ladr(b,a)<br />

% IIR Direct form to pole-zero Lattice/Ladder form Conversion<br />

% -----------------------------------------------------------<br />

% [K,C] = dir2ladr(b,a)<br />

% K = Lattice coefficients (reflection coefficients), [K1,...,KN]<br />

% C = Ladder Coefficients, [C0,...,CN]<br />

% b = Numerator polynomial coefficients (deg N<br />

error(’ *** length of b must be N, the numerator A N (z)<br />

should be divided into the denominator B M (z) using the deconv function<br />

to obtain a proper rational part and a polynomial part. The proper<br />

rational part can be implemented using a lattice-ladder structure, while<br />

the polynomial part is implemented using a direct structure.<br />

To convert a lattice-ladder form into a direct form, we first use the<br />

recursive procedure in (6.21) on {K m } coefficients to determine {a N (k)}<br />

and then solve (6.27) recursively to obtain {b M (k)}. This is done in the<br />

following MATLAB function ladr2dir.<br />

function [b,a] = ladr2dir(K,C)<br />

% Lattice/Ladder form to IIR Direct form Conversion<br />

% -------------------------------------------------<br />

% [b,a] = ladr2dir(K,C)<br />

% b = numerator polynomial coefficients<br />

% a = denominator polymonial coefficients<br />

% K = Lattice coefficients (reflection coefficients)<br />

% C = Ladder coefficients<br />

%<br />

N = length(K); M = length(C);<br />

C = [C, zeros(1,N-M+1)];<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!