diff options
Diffstat (limited to 'macros/cheb1ord.sci')
-rw-r--r-- | macros/cheb1ord.sci | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/macros/cheb1ord.sci b/macros/cheb1ord.sci index 61737a0..c50bdcf 100644 --- a/macros/cheb1ord.sci +++ b/macros/cheb1ord.sci @@ -11,11 +11,9 @@ // Email: toolbox@scilab.in function [n, Wc] = cheb1ord(Wp, Ws, Rp, Rs) //Minimum filter order of a digital Chebyshev type I filter with the desired response characteristics. - //Calling Sequence //n = cheb1ord(Wp, Ws, Rp, Rs) //[n, Wp] = cheb1ord(Wp, Ws, Rp, Rs) - //Parameters //Wp: scalar or vector of length 2 (passband edge(s)), all elements must be in the range [0,1] //Ws: scalar or vector of length 2 (stopband edge(s)), all elements must be in the range [0,1] @@ -23,7 +21,6 @@ function [n, Wc] = cheb1ord(Wp, Ws, Rp, Rs) //Rs: stopband attenuation in dB. //n: Minimum filter order satisfying specs //Wp: passband edge(s) - //Description //This function computes the minimum filter order of a Chebyshev type I filter with the desired response characteristics. //Stopband frequency ws and passband frequency wp specify the the filter frequency band edges. @@ -32,7 +29,6 @@ function [n, Wc] = cheb1ord(Wp, Ws, Rp, Rs) //If ws>wp then the filter is a low pass filter. If wp>ws, then the filter is a high pass filter. //If wp and ws are vectors of length 2, then the passband interval is defined by wp and the stopband interval is defined by ws. //If wp is contained within the lower and upper limits of ws, the filter is a band-pass filter. If ws is contained within the lower and upper limits of wp, the filter is a band-stop or band-reject filter. - //Examples //[n, wp]=cheb1ord([0.25 0.3],[0.24 0.31],3,10) // wp = |