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/butter.xml | 52 +++++++++++++++++++++++++++------------------------ 1 file changed, 28 insertions(+), 24 deletions(-) (limited to 'help/en_US/butter.xml') diff --git a/help/en_US/butter.xml b/help/en_US/butter.xml index bacacaf..8137c23 100644 --- a/help/en_US/butter.xml +++ b/help/en_US/butter.xml @@ -17,20 +17,19 @@ butter - This function generates a Butterworth filter. + Butterworth filter design.. Calling Sequence - [a, b] = butter (n, w) - [a, b] = butter (n, w, "high") - [a, b] = butter (n, [wl, wh]) - [b, a] = butter (n, [wl, wh], "stop") - [a, b, c] = butter (…) - [a, b, c, d] = butter (…) - […] = butter (…, "s") + [b, a] = butter (n, wc) + [b, a] = butter (n, wc, "high") + [b, a] = butter (n, [wl, wh]) + [b, a] = butter (n, [wl, wh], "stop") + [z, p, g] = butter (…) + […] = butter (…, "s") @@ -38,34 +37,39 @@ Parameters n: - positive integer value - w: - positive real value, w in the range [0,1] + positive integer value (order of filter). + wc: + positive real value, 1).Normalised digital 3dB cutoff frequency/frequencies for digital filter, in the range [0, 1] {dimensionless} 2).Analog 3dB cutoff frequency/frequencies for analog filter, in the range [0, Inf] {rad/sec} Description -This is an Octave function. -This function generates a Butterworth filter. Default is a discrete space (Z) filter. -The third parameter takes in low or high, default value is low. The cutoff is pi*Wc radians. -[b,a] = butter(n, [Wl, Wh]) indicates a band pass filter with edges pi*Wl and pi*Wh radians. -[b,a] = butter(n, [Wl, Wh], ’stop’) indicates a band reject filter with edges pi*Wl and pi*Wh radians. -[z,p,g] = butter(...) returns filter as zero-pole-gain rather than coefficients of the numerator and denominator polynomials. -[...] = butter(...,’s’) returns a Laplace space filter, w can be larger than 1. -[a,b,c,d] = butter(...) returns state-space matrices. +This function generates a Butterworth filter. Default is a discrete space (z) or digital filter using Bilinear transformation from s to z plane. + If second argument is scalar the third parameter takes in low or high, default value is low. The cutoff is pi*wc radians. + [b,a] = butter(n, [wl, wh]) indicates a band pass filter with cutoffs pi*Wl and pi*wh radians. + [b,a] = butter(n, [wl, wh], ’stop’) indicates a band reject filter with cutoffs pi*wl and pi*wh radians. + [z,p,g] = butter(...) returns filter as zero-pole-gain rather than coefficients of the numerator and denominator polynomials. + [...] = butter(...,’s’) returns a Laplace space filter,here cutoff(s) wc can be larger than 1 (rad/sec). Examples + + +Modified by : + +Sonu Sharma, RGIT Mumbai (fellow at FOSSEE, IIT Bombay) + + + -- cgit