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.

422 Chapter 8 IIR FILTER DESIGN<br />

capk = ellipke([k.^2 1-k.^2]); % Version 4.0 code<br />

capk1 = ellipke([(k1 .^2) 1-(k1 .^2)]); % Version 4.0 code<br />

N = ceil(capk(1)*capk1(2)/(capk(2)*capk1(1)));<br />

fprintf(’\n*** Elliptic Filter Order = %2.0f \n’,N)<br />

[b,a]=u_elipap(N,Rp,As,OmegaC);<br />

□ EXAMPLE 8.8 Design an analog elliptic lowpass filter to satisfy the following specifications of<br />

Example 8.5:<br />

Ω p =0.2π, R p =1dB<br />

Ω s =0.3π, A s =16db<br />

Solution<br />

MATLAB script:<br />

>> Wp = 0.2*pi; Ws = 0.3*pi; Rp = 1; As = 16;<br />

>> Ripple = 10 ^ (-Rp/20); Attn = 10 ^ (-As/20);<br />

>> % Analog filter design:<br />

>> [b,a] = afd_elip(Wp,Ws,Rp,As);<br />

*** Elliptic Filter Order = 3<br />

>> % Calculation of second-order sections:<br />

>> [C,B,A] = sdir2cas(b,a)<br />

C = 0.2740<br />

B = 1.0000 0 0.6641<br />

A = 1.0000 0.1696 0.4102<br />

0 1.0000 0.4435<br />

>> % Calculation of Frequency Response:<br />

>> [db,mag,pha,w] = freqs_m(b,a,0.5*pi);<br />

>> % Calculation of Impulse response:<br />

>> [ha,x,t] = impulse(b,a);<br />

The specifications are satisfied by a 3rd-order elliptic filter whose system function<br />

is<br />

0.274 ( s 2 +0.6641 )<br />

H a(s) =<br />

(s 2 +0.1696s +0.4102) (s +0.4435)<br />

The filter plots are shown in Figure 8.18.<br />

□<br />

8.3.13 PHASE RESPONSES OF PROTOTYPE FILTERS<br />

Elliptic filters provide optimal performance in the magnitude-squared response<br />

but have highly nonlinear phase response in the passband (which is<br />

undesirable in many applications). Even though we decided not to worry<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!