summaryrefslogtreecommitdiff
path: root/macros/fftshift1.sci
diff options
context:
space:
mode:
Diffstat (limited to 'macros/fftshift1.sci')
-rw-r--r--macros/fftshift1.sci12
1 files changed, 12 insertions, 0 deletions
diff --git a/macros/fftshift1.sci b/macros/fftshift1.sci
new file mode 100644
index 0000000..2928850
--- /dev/null
+++ b/macros/fftshift1.sci
@@ -0,0 +1,12 @@
+function y= fftshift1(X,DIM)
+ rhs= argn(2);
+ if(rhs <1 | rhs >2)
+ error('Wrong number of Input arguments');
+ end
+ select(rhs)
+ case 1 then
+ y=callOctave("fftshift",X);
+ case 2 then
+ y=callOctave("fftshift",X,DIM);
+ end
+endfunction \ No newline at end of file