<< cheb1ord Signal Processing Supplementary toolbox convm >>

Signal Processing Supplementary toolbox >> Signal Processing Supplementary toolbox > cheb2ord

cheb2ord

Finding order of Chebyshev filter of type-2

Calling Sequence

[n,Wn] = cheb2ord(Wp,Ws,Rp,Rs)
[n,Wn] = cheb2ord(Wp,Ws,Rp,Rs,'s')

Arguments

Wp

Normalized passband edge frequency.

Ws

Normalized stopband edge frequency.

Rp

Allowable passband ripple in dB.

Rs

Allowable stopband attenuation in dB.

Description

It computes the order of a type-2 chebyshev filter using the specified parameters Wp, Ws, Rp and Rs. For lowpass and highpass filters, Wp and Ws are single valued. For lowpass filters, Wp is less than Ws and for highpass filters Wp is greater than Ws. For bandpass and bandstop filters, Wp and Ws are arrays having two elements. For bandpass filters Ws(1) is greater than Wp(1), Wp(2) is less than Ws(2). For bandstop filters, Wp(1) is less than Ws(1) and Wp(2) is less than Ws(2). The function also computes the type-2 Chebyshev natural frequency corresponding to the given specifications. By default, the fifth input parameter is 'z'. If it is 's', filter order n, frequency Wn corresponds to the type-2 Chebyshev analog filter.

Examples

//Finding lowpass filter order with specifications
// passband edge = 0.35, stopband edge =0.675, 
// passband ripple =6 dB, stopband attenuation = 5 dB

wp=0.35; 
ws=0.675;
rp=10;
rs=30;
[n,wn]=cheb2ord(wp,ws, rp, rs))

Authors


Report an issue
<< cheb1ord Signal Processing Supplementary toolbox convm >>