summaryrefslogtreecommitdiff
path: root/macros/ifftn.sci
diff options
context:
space:
mode:
Diffstat (limited to 'macros/ifftn.sci')
-rw-r--r--macros/ifftn.sci33
1 files changed, 17 insertions, 16 deletions
diff --git a/macros/ifftn.sci b/macros/ifftn.sci
index 941dc67..ae9a591 100644
--- a/macros/ifftn.sci
+++ b/macros/ifftn.sci
@@ -1,20 +1,21 @@
-*/
-/*Description
- Compute the inverse N-dimensional discrete Fourier transform of A using a Fast Fourier Transform (FFT) algorithm.
- The optional vector argument SIZE may be used specify the dimensions of the matrix to be used.
- If an element of SIZE is smaller than the corresponding dimension of A, then the dimension of A is truncated prior to performing the inverse FFT.
- Otherwise, if an element of SIZE is larger than the corresponding dimension then A is resized and padded with zeros.
-Calling Sequence
- Y = ifftn(A)
- Y = ifftn(A, size)
-Parameters
- A: Matrix
- SIZE : (optional) dimension of matrix to be used
-Examples
- ifftn([2,3,4])
- ans =
- 3. - 0.5 - 0.2886751i - 0.5 + 0.2886751i */
+
function y = ifftn(A, SIZE)
+// Description
+// Compute the inverse N-dimensional discrete Fourier transform of A using a Fast Fourier Transform (FFT) algorithm.
+// The optional vector argument SIZE may be used specify the dimensions of the matrix to be used.
+// If an element of SIZE is smaller than the corresponding dimension of A, then the dimension of A is truncated prior to performing the inverse FFT.
+// Otherwise, if an element of SIZE is larger than the corresponding dimension then A is resized and padded with zeros.
+// Calling Sequence
+// Y = ifftn(A)
+// Y = ifftn(A, size)
+// Parameters
+// A: Matrix
+// SIZE : (optional) dimension of matrix to be used
+// Examples
+// ifftn([2,3,4])
+// ans =
+// 3. - 0.5 - 0.2886751i - 0.5 + 0.2886751i
+
funcprot(0);
funcprot(0);
rhs = argn(2)