summaryrefslogtreecommitdiff
path: root/macros/parzenwin.sci
diff options
context:
space:
mode:
authorshamikam2017-11-07 15:59:48 +0530
committershamikam2017-11-07 15:59:48 +0530
commitc0c0582462720ed597b00e116506570577614e89 (patch)
tree31dedd23698e5357b19c810b7d7a8464100ef44a /macros/parzenwin.sci
downloadFOSSEE-Signal-Processing-Toolbox-c0c0582462720ed597b00e116506570577614e89.tar.gz
FOSSEE-Signal-Processing-Toolbox-c0c0582462720ed597b00e116506570577614e89.tar.bz2
FOSSEE-Signal-Processing-Toolbox-c0c0582462720ed597b00e116506570577614e89.zip
initial commit
Diffstat (limited to 'macros/parzenwin.sci')
-rw-r--r--macros/parzenwin.sci26
1 files changed, 26 insertions, 0 deletions
diff --git a/macros/parzenwin.sci b/macros/parzenwin.sci
new file mode 100644
index 0000000..f51c924
--- /dev/null
+++ b/macros/parzenwin.sci
@@ -0,0 +1,26 @@
+function [y] = parzenwin (m)
+//This function returns the filter coefficients of a Parzen window.
+//Calling Sequence
+//y = parzenwin (m)
+//Parameters
+//m: positive integer value
+//y: output variable, vector of real numbers
+//Description
+//This is an Octave function.
+//This function returns the filter coefficients of a Parzen window of length m supplied as input, to the output vector y.
+//Examples
+//parzenwin(3)
+//ans =
+// 0.0740741
+// 1.
+// 0.0740741
+
+rhs = argn(2)
+
+if(rhs~=1)
+error("Wrong number of input arguments.")
+end
+
+y = callOctave("parzenwin",m)
+
+endfunction