Home > freetb4matlab > signal > cheb1ord.m

cheb1ord

PURPOSE ^

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

SYNOPSIS ^

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

DESCRIPTION ^

% Compute chebyshev type I 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] = cheb1ord(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] = cheb1ord([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.
%
% See also: cheby1

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 22-May-2009 15:13:00 by m2html © 2003