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.

Frequency-band Transformations 457<br />

This highpass filter design procedure can be easily extended to other<br />

frequency-selective filters using the transformation functions in Table 8.2.<br />

These design procedures are explored in Problems P8.34, P8.36, P8.38,<br />

and P8.40. We now describe MATLAB’s filter design functions for designing<br />

arbitrary frequency-selective filters.<br />

8.6.2 MATLAB IMPLEMENTATION<br />

In the preceding section we discussed four MATLAB functions to design<br />

digital lowpass filters. These same functions can also be used to design<br />

highpass, bandpass, and bandstop filters. The frequency-band transformations<br />

in these functions are done in the s-plane, that is, they use<br />

Approach-1 discussed on page 386. For the purpose of illustration we<br />

will use the function butter. Itcan be used with the following variations<br />

in its input arguments.<br />

• [b,a] = BUTTER(N,wn,’high’) designs an Nth-order highpass filter<br />

with digital 3-dB cutoff frequency wn in units of π.<br />

• [b,a] = BUTTER(N,wn,)designs an order 2N bandpass filter if wn is a<br />

two-element vector, wn=[w1 w2], with 3-dB passband w1 < w < w2 in<br />

units of π.<br />

• [b,a] = BUTTER(N,wn,’stop’) is an order 2N bandstop filter if wn=[w1<br />

w2]with 3-dB stopband w1 < w < w2 in units of π.<br />

To design any frequency-selective Butterworth filter, we need to know<br />

the order N and the 3-dB cutoff frequency vector wn. Inthis chapter we<br />

described how to determine these parameters for lowpass filters. However,<br />

these calculations are more complicated for bandpass and bandstop filters.<br />

In their SP toolbox, MATLAB provides a function called buttord to<br />

compute these parameters. Given the specifications, ω p , ω s , R p , and A s ,<br />

this function determines the necessary parameters. Its syntax is<br />

[N,wn] = buttord(wp,ws,Rp,As)<br />

The parameters wp and ws have some restrictions, depending on the type<br />

of filter:<br />

• Forlowpass filters wp < ws.<br />

• For highpass filters wp > ws.<br />

• For bandpass filters wp and ws are two-element vectors, wp=[wp1,<br />

wp2] and ws=[ws1,ws2], such that ws1 < wp1 < wp2 < ws2.<br />

• For bandstop filters wp1 < ws1 < ws2 < wp2.<br />

Now using the buttord function in conjunction with the butter function,<br />

we can design any Butterworth IIR filter. Similar discussions apply<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!