Home > freetb4matlab > signal > cheb2ord.m

cheb2ord

PURPOSE ^

% Compute chebyshev type II filter order and cutoff for the desired response

SYNOPSIS ^

function [n, Wc] = cheb2ord(Wp, Ws, Rp, Rs)

DESCRIPTION ^

% Compute chebyshev type II filter order and cutoff for the desired response
% characteristics. Rp is the allowable decibels of ripple in the pass 
% band. Rs is the minimum attenuation in the stop band.
%
% [n, Wc] = cheb2ord(Wp, Ws, Rp, Rs)
%     Low pass (Wp<Ws) or high pass (Wp>Ws) filter design.  Wp is the
%     pass band edge and Ws is the stop band edge.  Frequencies are
%     normalized to [0,1], corresponding to the range [0,Fs/2].
% 
% [n, Wc] = cheb2ord([Wp1, Wp2], [Ws1, Ws2], Rp, Rs)
%     Band pass (Ws1<Wp1<Wp2<Ws2) or band reject (Wp1<Ws1<Ws2<Wp2)
%     filter design. Wp gives the edges of the pass band, and Ws gives
%     the edges of the stop band.
%
% Theory: 
%
% See also: cheby2

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Sat 16-May-2009 00:04:49 by m2html © 2003