summaryrefslogtreecommitdiff
path: root/macros/idct1.sci
diff options
context:
space:
mode:
authorBrijeshcr2017-11-10 15:10:05 +0530
committerBrijeshcr2017-11-10 15:10:05 +0530
commitcc5c7ee42c6cb2ab94dd0e0f6985778657ab47f5 (patch)
tree8ab91353da76f22bc6e54a2b133bbbfd4aeb6aff /macros/idct1.sci
parent6e1e4362783f68a8e8be1d199337c1ca831a2994 (diff)
parent9f6962b19c4a5fa76f7525a72faabb1b754712ad (diff)
downloadFOSSEE-Signal-Processing-Toolbox-cc5c7ee42c6cb2ab94dd0e0f6985778657ab47f5.tar.gz
FOSSEE-Signal-Processing-Toolbox-cc5c7ee42c6cb2ab94dd0e0f6985778657ab47f5.tar.bz2
FOSSEE-Signal-Processing-Toolbox-cc5c7ee42c6cb2ab94dd0e0f6985778657ab47f5.zip
merged upstream
Diffstat (limited to 'macros/idct1.sci')
-rw-r--r--macros/idct1.sci14
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