summaryrefslogtreecommitdiff
path: root/macros/ifftn.sci
diff options
context:
space:
mode:
Diffstat (limited to 'macros/ifftn.sci')
-rw-r--r--macros/ifftn.sci15
1 files changed, 15 insertions, 0 deletions
diff --git a/macros/ifftn.sci b/macros/ifftn.sci
new file mode 100644
index 0000000..269a77d
--- /dev/null
+++ b/macros/ifftn.sci
@@ -0,0 +1,15 @@
+function y = ifftn(A, varargin)
+
+funcprot(0);
+rhs = argn(2)
+if(rhs<1 | rhs>2)
+error("Wrong number of input arguments.");
+end
+
+ select(rhs)
+ case 1 then
+ y = callOctave("ifftn",A);
+ case 2 then
+ y = callOctave("ifftn",A, varargin(1));
+ end
+endfunction