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 249<br />

Solution<br />

MATLAB script:<br />

>> b = [1,2,2,1] a = [1, 13/24, 5/8, 1/3]; [K,C] = dir2ladrc(b)<br />

K =<br />

0.2500 0.5000 0.3333<br />

C =<br />

-0.2695 0.8281 1.4583 1.0000<br />

Hence<br />

K 1 = 1 4 ,K2 = 1 2 ,K3 = 1 3 ;<br />

and<br />

C 0 = −0.2695, C 1 =0.8281, C 2 =1.4583, C 3 =1<br />

IIR filter structures in Example 6.10: (a) direct form (b) lattice-<br />

FIGURE 6.23<br />

ladder form<br />

The resulting direct form and the lattice-ladder form structures are shown in<br />

Figure 6.23. To check that our lattice-ladder structure is correct, let us compute<br />

the first 8 samples of its impulse response using both forms.<br />

>> [x,n]=impseq(0,0,7) format long hdirect = filter(b,a,x)<br />

hdirect =<br />

Columns 1 through 4<br />

1.00000000000000 1.45833333333333 0.58506944444444 -0.56170428240741<br />

Columns 5 through 8<br />

-0.54752302758488 0.45261700163162 0.28426911049255 -0.25435705167494<br />

>> hladder = ladrfilt(K,C,x)<br />

hladder =<br />

Columns 1 through 4<br />

1.00000000000000 1.45833333333333 0.58506944444444 -0.56170428240741<br />

Columns 5 through 8<br />

-0.54752302758488 0.45261700163162 0.28426911049255 -0.25435705167494<br />

□<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!