summaryrefslogtreecommitdiff
path: root/macros/fwht.sci
diff options
context:
space:
mode:
Diffstat (limited to 'macros/fwht.sci')
-rw-r--r--macros/fwht.sci20
1 files changed, 20 insertions, 0 deletions
diff --git a/macros/fwht.sci b/macros/fwht.sci
new file mode 100644
index 0000000..280bbee
--- /dev/null
+++ b/macros/fwht.sci
@@ -0,0 +1,20 @@
+function y = fwht(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("fwht", x);
+ case 2 then
+ y= callOctave("fwht",x, varagin(1));
+ case 3 then
+ y= callOctave("fwht",x, varargin(1), varargin(2));
+end
+endfunction
+
+