02.10.2019 Views

UploadFile_6417

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

IIR Filter Structures 217<br />

FIGURE 6.4<br />

Biquad section structure<br />

kth biquad is the input to the (k +1)th biquad. Now each biquad section<br />

H k (z) can be implemented in direct form II, as shown in Figure 6.4. The<br />

entire filter is then implemented as a cascade of biquads.<br />

As an example, consider N =4.Figure 6.5 shows a cascade form<br />

structure for this 4th-order IIR filter.<br />

6.2.5 MATLAB IMPLEMENTATION<br />

Given the coefficients {b n } and {a n } of the direct form filter, we have to<br />

obtain the coefficients b 0 , {B k,i }, and {A k,i }. This is done by the following<br />

function dir2cas.<br />

function [b0,B,A] = dir2cas(b,a);<br />

% DIRECT-form to CASCADE-form conversion (cplxpair version)<br />

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

% [b0,B,A] = dir2cas(b,a)<br />

% b0 = gain coefficient<br />

% B = K by 3 matrix of real coefficients containing bk’s<br />

% A = K by 3 matrix of real coefficients containing ak’s<br />

% b = numerator polynomial coefficients of DIRECT form<br />

% a = denominator polynomial coefficients of DIRECT form<br />

% compute gain coefficient b0<br />

b0 = b(1); b = b/b0; a0 = a(1); a = a/a0; b0 = b0/a0;<br />

%<br />

M = length(b); N = length(a);<br />

if N > M<br />

b = [b zeros(1,N-M)];<br />

FIGURE 6.5 Cascade form structure for N =4<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!