From octave-sources-request at bevo dot che dot wisc dot edu Mon Jan 15 08:47:56 2001 Subject: Complement of cheb1ord.m From: Laurent Mazet To: octave-sources at bevo dot che dot wisc dot edu Cc: pkienzle at kienzle dot powernet dot co dot uk Date: Mon, 15 Jan 2001 15:41:34 +0100 (MET) Hi, I've just completed the cheb1ord function from the Paul Kienzle's package. It is not fully functionnal (can't do reject band fiter design) but it can be use for other Chebychev filter design. Laurent ## Copyright (C) 2000 Paul Kienzle ## ## This program is free software and may be used for any purpose. This ## copyright notice must be maintained. Paul Kienzle is not responsible ## for the consequences of using this software. ## ## Completed by: Laurent S. Mazet ## 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 (WpWs) 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 (Ws1Ws) || all(Ws>Wp) || diff(Wp)<=0 || diff(Ws)<=0) error("cheb1ord: Wp(1)