Analog and Digital Filters
581
R.6.69 The following example illustrates the case where the desired transfer function of
an LP Butterworth fi lter is given by a denominator polynomial of order 6, whereas
the numerator polynomial is of order 4, and w p = 0.3.
MATLAB Solution
>> [num,den] = maxflat (4,6,0.3)
num =
0.0086 0.0344 0.0515 0.0344 0.0086
den =
1.0000 -2.4633 3.0480 -2.1861 0.9427 -0.2278 0.0239
R.6.70 Once the poles, zeros, and gain of the desired fi lter transfer function are known (indicated by the variables p, z, and k), the numerator and denominator polynomial coeffi cients of the transfer function can be obtained by using the MATLAB function
[num, den] zp2tf(z, p, k)
ϭ
R.6.71 The following function fi les can be used in the analysis and synthesis of analog
Chebyshev type-1 fi lters:
a. [z, p, k] = cheblap(n, R p ) returns the zeros (z), poles (p), and gain factor (k) of the
normalized analog type-1 Chebyshev LPF transfer function of order n with a
pass-band ripple R p expressed in decibels.
b. [num, den] = cheby1(n, R p , w n , ‘s’) returns the num and den of the LPF transfer
function of order n (numerator and denominator) as vectors consisting of the
polynomial coeffi cients of the transfer function in descending powers of s, given
R p (pass-band ripple in decibel) and w n (pass-band edge in radians/second).
If w n is specifi ed as a two-element vector such as w n = [w l , w u ], where w l < w u ,
the function returns the transfer function of a second-order BPF with pass-band
edges given by w l and w u .
c. [num, den] = cheb1(n, R p , w n , ‘fi ltertype’, ‘s’) returns the num and den of the transfer
function of order n (numerator and denominator) as vectors consisting of the
polynomial coeffi cients arranged in descending powers of s. When ‘fi ltertype’ is
specifi ed as ‘high’ for an HPF, or ‘stop’ for a BSF, then w n = [w u , w l ] is given by two
values, for w u > w l , given the band-pass ripple R p (in decibels).
d. [n, w n ] = cheb1ord(w p , w s , R p , R s , ‘s’) returns the lowest LPF order (n) of the
Chebyshev type-1 analog fi lter, where w n indicates the cutoff frequency (radians
per second), given the following input variables:
w p = Pass-band edge (rad/s)
w s = Stop-band edge (rad/s)
R p = Maximum pass-band attenuation (dB)
R s = Minimum stop-band attenuation (dB)
R.6.72 The function fi les used for the analysis and synthesis of analog type-2 Chebyshev
fi lters are summarized as follows:
a. [z, p, k] = cheb2ap (n, R s )
b. [num, den] = cheby2 (n, R s , w n , ‘s’)
c. [num, den] = cheby2 (n, R s , ‘fi ltertype’, ‘s’)
d. [n, w n ] = cheb2ord (w p , w s , R p , R s , ‘s’)
CRC_47760_CH006.indd 581
CRC_47760_CH006.indd 581
7/23/2008 2:26:36 PM
7/23/2008 2:26:36 PM
Précédent

- 592/708

Suivant