summaryrefslogtreecommitdiff
path: root/macros/czt.sci
diff options
context:
space:
mode:
authorAbhinav Dronamraju2017-11-09 15:24:34 +0530
committerAbhinav Dronamraju2017-11-09 15:24:34 +0530
commit2c5902040b960ccca8d0b51c58c00fc114a09518 (patch)
treeee096d4b373fbf6d5e8f8cc3e2b3ec777dd5e865 /macros/czt.sci
parent487df8d5650f198857d5dd5635f9493fa8c06e8f (diff)
downloadFOSSEE-Signal-Processing-Toolbox-2c5902040b960ccca8d0b51c58c00fc114a09518.tar.gz
FOSSEE-Signal-Processing-Toolbox-2c5902040b960ccca8d0b51c58c00fc114a09518.tar.bz2
FOSSEE-Signal-Processing-Toolbox-2c5902040b960ccca8d0b51c58c00fc114a09518.zip
czt, dst1, fwht, hilbert1, ifht, ifwht, invfreq, rceps
Diffstat (limited to 'macros/czt.sci')
-rw-r--r--macros/czt.sci22
1 files changed, 22 insertions, 0 deletions
diff --git a/macros/czt.sci b/macros/czt.sci
new file mode 100644
index 0000000..b027489
--- /dev/null
+++ b/macros/czt.sci
@@ -0,0 +1,22 @@
+function y = czt(x, varargin)
+
+funcprot(0);
+lhs= argn(1);
+rhs= argn(2);
+
+if(rhs<1 | rhs > 4)
+error("Wrong number of input arguments")
+end
+
+select (rhs)
+ case 1 then
+ y= callOctave("czt", x);
+ case 2 then
+ y= callOctave("czt", x, varargin(1));
+ case 3 then
+ y= callOctave("czt", x, varargin(1), varargin(2));
+ case 4 then
+ y= callOctave("czt", x, varargin(1), varargin(2), varargin(3));
+end
+endfunction
+