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