diff options
Diffstat (limited to 'macros/fir1.sci')
-rw-r--r-- | macros/fir1.sci | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/macros/fir1.sci b/macros/fir1.sci new file mode 100644 index 0000000..e3ff152 --- /dev/null +++ b/macros/fir1.sci @@ -0,0 +1,19 @@ +function B = fir1(N, W, varargin) + +funcprot(0); +rhs = argn(2) +if(rhs<2 | rhs>5) +error("Wrong number of input arguments."); +end + + select(rhs) + case 2 then + B = callOctave("fir1", N, W); + case 3 then + B = callOctave("fir1", N, W, varargin(1)); + case 4 then + B = callOctave("fir1", N, W, varargin(1), varargin(2)); + case 5 then + B = callOctave("fir1", N, W, varargin(1), varargin(2), varargin(3)); + end +endfunction |