summaryrefslogtreecommitdiff
path: root/macros/idct1.sci
diff options
context:
space:
mode:
authorbgtushar2017-11-30 17:33:15 +0530
committerbgtushar2017-11-30 17:33:15 +0530
commit8e9af4404bedd0fc7ff9c34bf8b794d6b8602b36 (patch)
treeb20459680962747b04c5e349df3740111613b47e /macros/idct1.sci
parentd97a4b7e2f0f25fb5cd94bd90a3b822592179d1e (diff)
downloadFOSSEE-Signal-Processing-Toolbox-8e9af4404bedd0fc7ff9c34bf8b794d6b8602b36.tar.gz
FOSSEE-Signal-Processing-Toolbox-8e9af4404bedd0fc7ff9c34bf8b794d6b8602b36.tar.bz2
FOSSEE-Signal-Processing-Toolbox-8e9af4404bedd0fc7ff9c34bf8b794d6b8602b36.zip
deleted html and added new functions
Diffstat (limited to 'macros/idct1.sci')
-rw-r--r--macros/idct1.sci21
1 files changed, 17 insertions, 4 deletions
diff --git a/macros/idct1.sci b/macros/idct1.sci
index d398e56..5015187 100644
--- a/macros/idct1.sci
+++ b/macros/idct1.sci
@@ -1,14 +1,27 @@
function y = idct1(x,n)
+//Compute the inverse discrete cosine transform of input.
+//Calling Sequence
+//Y = idct1(X)
+//Y = idct1(X, N)
+//Parameters
+//X: Matrix or integer
+//N: If N is given, then X is padded or trimmed to length N before computing the transform.
+//Description
+// This function computes the inverse discrete cosine transform of input X. If N is given, then X is padded or trimmed to length N before computing the transform. If X is a matrix, compute the transform along the columns of the the matrix. The transform is faster if X is real-valued and even length.
+//Examples
+//idct1([1,3,6])
+//ans =
+// 5.1481604 - 4.3216292 0.9055197
funcprot(0);
-rhs=argn(2)
+rhs=argn(2);
if (rhs<1 | rhs>2) then
- error("Wrong number of input arguments.")
+ error("Wrong number of input arguments.");
end
select(rhs)
case 1 then
- y=callOctave("idct",x)
+ y=callOctave("idct",x);
case 2 then
- y=callOctave("idct",x,n)
+ y=callOctave("idct",x,n);
end
endfunction