summaryrefslogtreecommitdiff
path: root/macros/filtfilt.sci
diff options
context:
space:
mode:
Diffstat (limited to 'macros/filtfilt.sci')
-rw-r--r--macros/filtfilt.sci4
1 files changed, 2 insertions, 2 deletions
diff --git a/macros/filtfilt.sci b/macros/filtfilt.sci
index f263da6..7f86113 100644
--- a/macros/filtfilt.sci
+++ b/macros/filtfilt.sci
@@ -11,8 +11,8 @@ function [y]=filtfilt(b,a,x)
// This is an Octave function
// In theory, it forwards and reverse filters the signal and corrects phase distortion upto an extent by a one-pass filter but squares the magnitude response in the process. Practically though, the correction isn't perfect and magnitude response, particularly the stop band is distorted.
// Examples
-// 1. [a,b]=filtfilt (1,2i,[i -4 0])
-// a = [0.00000 - 0.25000i 1.00000 + 0.00000i 0.00000 + 0.00000i]
+// 1. y=filtfilt (1,2*%i,[%i -4 0]) // Number of Output argument should be equal to 1
+// y = [-0.25i 1 0]
funcprot(0);
rhs=argn(2);