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