summaryrefslogtreecommitdiff
path: root/macros/spectral_xdf.sci
diff options
context:
space:
mode:
authorAbhinav Dronamraju2017-11-10 14:59:26 +0530
committerAbhinav Dronamraju2017-11-10 14:59:26 +0530
commit47535ab08afeb48fbb00f03e68d6ff973cf62cbd (patch)
tree732f6946451fb15f5639fe454ef17fbba2d5012f /macros/spectral_xdf.sci
parentc54a48768d92ccf0f268b4b3b1a762c154865a02 (diff)
downloadFOSSEE-Signal-Processing-Toolbox-47535ab08afeb48fbb00f03e68d6ff973cf62cbd.tar.gz
FOSSEE-Signal-Processing-Toolbox-47535ab08afeb48fbb00f03e68d6ff973cf62cbd.tar.bz2
FOSSEE-Signal-Processing-Toolbox-47535ab08afeb48fbb00f03e68d6ff973cf62cbd.zip
Functions added
Diffstat (limited to 'macros/spectral_xdf.sci')
-rw-r--r--macros/spectral_xdf.sci18
1 files changed, 18 insertions, 0 deletions
diff --git a/macros/spectral_xdf.sci b/macros/spectral_xdf.sci
new file mode 100644
index 0000000..fe93327
--- /dev/null
+++ b/macros/spectral_xdf.sci
@@ -0,0 +1,18 @@
+function y= spectral_xdf(x, varargin)
+
+funcprot(0);
+rhs= argn(2);
+if(rhs<1 | rhs>3)
+error("Wrong number of input arguments")
+end
+
+select(rhs)
+ case 1 then
+ y= callOctave("spectral_xdf", x);
+ case 2 then
+ y= callOctave("spectral_xdf", x , varargin(1));
+ case 3 then
+ y= callOctave("spectral_xdf", x , varargin(1), varargin(2));
+
+end
+endfunction