summaryrefslogtreecommitdiff
path: root/macros/hanning.sci
diff options
context:
space:
mode:
Diffstat (limited to 'macros/hanning.sci')
-rw-r--r--macros/hanning.sci11
1 files changed, 10 insertions, 1 deletions
diff --git a/macros/hanning.sci b/macros/hanning.sci
index d90faf2..60ca783 100644
--- a/macros/hanning.sci
+++ b/macros/hanning.sci
@@ -1,5 +1,14 @@
function y = hanning(m, varargin)
-
+//Return the filter coefficients of a Hanning window of length M
+//Calling Sequence
+//hanning (M)
+//hanning (M, "periodic")
+//hanning (M, "symmetric")
+//Parameters
+//M: real scalar, which will be the length of hanning window
+//Description
+//Return the filter coefficients of a Hanning window of length M.
+//If the optional argument "periodic" is given, the periodic form of the window is returned. This is equivalent to the window of length M+1 with the last coefficient removed. The optional argument "symmetric" is equivalent to not specifying a second argument.
funcprot(0);
rhs= argn(2);