diff options
Diffstat (limited to 'macros/hanning.sci')
-rw-r--r-- | macros/hanning.sci | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/macros/hanning.sci b/macros/hanning.sci new file mode 100644 index 0000000..85860c8 --- /dev/null +++ b/macros/hanning.sci @@ -0,0 +1,15 @@ +function y = hanning(m, varargin) + +funcprot(0); +rhs= argn(2); +if(rhs <1 | rhs>2) +error("Wrong number of Input parameters"); +end + +select(rhs) + case 1 then + y= callOctave("hanning", m); + case 2 then + y= callOctave("hanning", m , varargin(1)); +end +endfunction |