diff options
author | Rashmi | 2024-08-07 15:34:47 +0530 |
---|---|---|
committer | Rashmi | 2024-08-07 15:34:47 +0530 |
commit | f8ae45ed71b709b3308a472ca00d641d6ba0fda3 (patch) | |
tree | 73406f2fccc8902c3f0854429ae3bc547978157b /macros/filtfilt.sci | |
parent | 91f8045f58b6b96dbaaf2d4400586660b92d461c (diff) | |
download | FOSSEE-Signal-Processing-Toolbox-f8ae45ed71b709b3308a472ca00d641d6ba0fda3.tar.gz FOSSEE-Signal-Processing-Toolbox-f8ae45ed71b709b3308a472ca00d641d6ba0fda3.tar.bz2 FOSSEE-Signal-Processing-Toolbox-f8ae45ed71b709b3308a472ca00d641d6ba0fda3.zip |
Corrected the code
Diffstat (limited to 'macros/filtfilt.sci')
-rw-r--r-- | macros/filtfilt.sci | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/macros/filtfilt.sci b/macros/filtfilt.sci deleted file mode 100644 index 7f86113..0000000 --- a/macros/filtfilt.sci +++ /dev/null @@ -1,23 +0,0 @@ -function [y]=filtfilt(b,a,x) - -// Zero phase digital filtering -// Calling Sequence -// [y]=filtfilt(b,a,x) -// Parameters -// b: Real or complex valued vector or matrix -// a: Real or complex valued vector or matrix -// x: Real or complex valued vector or matrix -// Description -// 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. 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); -if (rhs~=3) then - error ("Wrong number of input arguments.") -else y=callOctave("filtfilt",b,a,x) -end -endfunction |