summaryrefslogtreecommitdiff
path: root/macros/dwt.sci
diff options
context:
space:
mode:
Diffstat (limited to 'macros/dwt.sci')
-rw-r--r--macros/dwt.sci17
1 files changed, 17 insertions, 0 deletions
diff --git a/macros/dwt.sci b/macros/dwt.sci
new file mode 100644
index 0000000..60dc7f6
--- /dev/null
+++ b/macros/dwt.sci
@@ -0,0 +1,17 @@
+function [U, V] = dwt(X, varargin)
+
+funcprot(0);
+rhs = argn(2)
+if(rhs<2 | rhs>4)
+error("Wrong number of input arguments.");
+end
+
+ select(rhs)
+ case 2 then
+ [U, V] = callOctave("dwt", X, varargin(1));
+ case 3 then
+ [U, V] = callOctave("dwt", X, varargin(1), varargin(2));
+ case 4 then
+ [U, V] = callOctave("dwt", X, varargin(1), varargin(2), varargin(3));
+ end
+endfunction