summaryrefslogtreecommitdiff
path: root/macros/idct2.sci
diff options
context:
space:
mode:
Diffstat (limited to 'macros/idct2.sci')
-rw-r--r--macros/idct2.sci27
1 files changed, 14 insertions, 13 deletions
diff --git a/macros/idct2.sci b/macros/idct2.sci
index 890927f..32040dc 100644
--- a/macros/idct2.sci
+++ b/macros/idct2.sci
@@ -1,17 +1,18 @@
-/*Description
- This function computes the inverse 2-D discrete cosine transform of matrix X. If M and N are specified, the input is either padded or truncated to have M rows and N columns.
-Calling Sequence
- Y = idct2(X)
- Y = idct2(X, M, N)
- Y = idct2(X, [M, N])
-Parameters
- X: Matrix or integer
- M, N: If specified Matrix X is padded with M rows and N columns.
-Examples
- idct2(3, 4, 6)
- ans =
- 2.811261 0.612372 -0.525856 0.250601 0.612372 -0.086516 */
function y = idct2 (x, m, n)
+// Description
+// This function computes the inverse 2-D discrete cosine transform of matrix X. If M and N are specified, the input is either padded or truncated to have M rows and N columns.
+// Calling Sequence
+// Y = idct2(X)
+// Y = idct2(X, M, N)
+// Y = idct2(X, [M, N])
+// Parameters
+// X: Matrix or integer
+// M, N: If specified Matrix X is padded with M rows and N columns.
+// Examples
+// idct2(3, 4, 6)
+// ans =
+// 2.811261 0.612372 -0.525856 0.250601 0.612372 -0.086516 */
+
funcprot(0);
rhs=argn(2);
select (rhs)