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