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.

420 Chapter 8 IIR FILTER DESIGN<br />

|H a (j Ω)| 2 N Odd<br />

1<br />

1<br />

N Even<br />

1<br />

A 2<br />

0<br />

Ω c<br />

Ω<br />

|H a (j Ω)| 2 Ω c<br />

1<br />

1 +<br />

1<br />

1 +<br />

1<br />

A 2<br />

0<br />

Ω<br />

8.3.11 COMPUTATION OF FILTER ORDER N<br />

Even though the analysis of (8.61) is difficult, the order calculation formula<br />

is very compact and is available in many textbooks [18, 23, 24]. It<br />

is given by<br />

N =<br />

(√ )<br />

K(k)K 1 − k<br />

2<br />

1<br />

K (k 1 ) K (√ (8.62)<br />

1 − k2) where<br />

and<br />

k = Ω p<br />

ɛ<br />

, k 1 = √<br />

Ω s A2 − 1<br />

K(x) =<br />

∫ π/2<br />

0<br />

dθ<br />

√<br />

1 − x2 sin 2 θ<br />

is the complete elliptic integral of the first kind. MATLAB provides the<br />

function ellipke to numerically compute the above integral, which we<br />

will use to compute N and to design elliptic filters.<br />

8.3.12 MATLAB IMPLEMENTATION<br />

MATLAB provides a function called [z,p,k]=ellipap(N,Rp,As) to design<br />

a normalized elliptic analog prototype filter of order N, passband<br />

ripple Rp, and stopband attenuation As, and that returns zeros in z array,<br />

poles in p array, and the gain value k. Weneed an unnormalized elliptic<br />

filter with arbitrary Ω c . This is achieved by scaling the arrays p and z of<br />

the normalized filter by Ω c and the gain k by the ratio of the unnormalized<br />

to the normalized rational functions evaluated at s =0.Inthe following<br />

function, called U elipap(N,Rp,As,Omegac), wedesign an unnormalized<br />

elliptic analog prototype filter that returns H a (s) inthe direct form.<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!