diff options
author | Abhinav Dronamraju | 2017-11-27 15:25:37 +0530 |
---|---|---|
committer | Abhinav Dronamraju | 2017-11-27 15:25:37 +0530 |
commit | b7969c62478edc84055e71df9fed140402406396 (patch) | |
tree | 048b7c76423fe27dee2e31a52bae93c95883614e /macros/fir2.sci | |
parent | 2bb28947f9736c1c65dd338bf1bc8fcc2570b22d (diff) | |
parent | d972a68bc5b3c4c059b70e4f8cd64a64538c2be8 (diff) | |
download | FOSSEE-Signal-Processing-Toolbox-b7969c62478edc84055e71df9fed140402406396.tar.gz FOSSEE-Signal-Processing-Toolbox-b7969c62478edc84055e71df9fed140402406396.tar.bz2 FOSSEE-Signal-Processing-Toolbox-b7969c62478edc84055e71df9fed140402406396.zip |
Merge with upstream
Diffstat (limited to 'macros/fir2.sci')
-rw-r--r-- | macros/fir2.sci | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/macros/fir2.sci b/macros/fir2.sci new file mode 100644 index 0000000..418a9e4 --- /dev/null +++ b/macros/fir2.sci @@ -0,0 +1,19 @@ +function B = fir2(N, F, M, varargin) + +funcprot(0); +rhs = argn(2) +if(rhs<3 | rhs>6) +error("Wrong number of input arguments."); +end + + select(rhs) + case 3 then + B = callOctave("fir2", N, F, M); + case 4 then + B = callOctave("fir2", N, F, M, varargin(1)); + case 5 then + B = callOctave("fir2", N, F, M, varargin(1), varargin(2)); + case 6 then + B = callOctave("fir2", N, F, M, varargin(1), varargin(2), varargin(3)); + end +endfunction |