From 9ca7882cee16ad48b18df989e8300c697010e55a Mon Sep 17 00:00:00 2001 From: Sunil Shetye Date: Wed, 25 Jul 2018 16:27:51 +0530 Subject: code changes by Sonu Sharma during FOSSEE Fellowship 2018 --- help/en_US/cheb2ord.xml | 44 ++++++++++++++++++++++++++++---------------- 1 file changed, 28 insertions(+), 16 deletions(-) (limited to 'help/en_US/cheb2ord.xml') diff --git a/help/en_US/cheb2ord.xml b/help/en_US/cheb2ord.xml index 199c595..279e258 100644 --- a/help/en_US/cheb2ord.xml +++ b/help/en_US/cheb2ord.xml @@ -17,7 +17,7 @@ cheb2ord - This function computes the minimum filter order of a Chebyshev type II filter with the desired response characteristics. + Minimum filter order of a digital Chebyshev type II filter with the desired response characteristics. @@ -25,7 +25,7 @@ Calling Sequence n = cheb2ord(Wp, Ws, Rp, Rs) - [n, Wc] = cheb2ord(Wp, Ws, Rp, Rs) + [n, Ws] = cheb2ord(Wp, Ws, Rp, Rs) @@ -33,35 +33,47 @@ Parameters Wp: - scalar or vector of length 2, all elements must be in the range [0,1] + 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, all elements must be in the range [0,1] + scalar or vector of length 2 (stopband edge(s)), all elements must be in the range [0,1] Rp: - real value + passband ripple in dB. Rs: - real value + stopband attenuation in dB. + n: + Minimum order of filter satisfying given specs. Description -This is an Octave function. -This function computes the minimum filter order of a Chebyshev type II filter with the desired response characteristics. -Stopband frequency ws and passband frequency wp specify the the filter frequency band edges. -Frequencies are normalized to the Nyquist frequency in the range [0,1]. -Rp is measured in decibels and is the allowable passband ripple and Rs is also measured in decibels and is the minimum attenuation in the stop band. -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. +This function computes the minimum filter order of a Chebyshev type II filter with the desired response characteristics. +Stopband frequency ws and passband frequency wp specify the the filter frequency band edges. +Frequencies are normalized to the Nyquist frequency in the range [0,1]. +Rp is measured in decibels and is the allowable passband ripple and Rs is also measured in decibels and is the minimum attenuation in the stop band. +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 + + +Modified by : + +Sonu Sharma, RGIT Mumbai (fellow at FOSSEE, IIT Bombay) + + + -- cgit