diff options
author | Rashmi Patankar | 2025-04-30 15:01:49 +0530 |
---|---|---|
committer | GitHub | 2025-04-30 15:01:49 +0530 |
commit | 0495a12104d8466509769fc34271757f00577709 (patch) | |
tree | cb208dd421d39051d85f4ef0476c9208ef2c41ab /macros/fftn.sci | |
parent | a0bff158d21c2c12a12781bc5019f3a45bd866b2 (diff) | |
parent | ec6379e7494ff4ca2dc7c7524013d109be450bae (diff) | |
download | FOSSEE-Signal-Processing-Toolbox-master.tar.gz FOSSEE-Signal-Processing-Toolbox-master.tar.bz2 FOSSEE-Signal-Processing-Toolbox-master.zip |
Fixed Failing test scripts
Diffstat (limited to 'macros/fftn.sci')
-rw-r--r-- | macros/fftn.sci | 35 |
1 files changed, 18 insertions, 17 deletions
diff --git a/macros/fftn.sci b/macros/fftn.sci index c90b096..84e2e65 100644 --- a/macros/fftn.sci +++ b/macros/fftn.sci @@ -1,21 +1,22 @@ -/*Description: - This function computes the N-dimensional discrete Fourier transform of A using a Fast Fourier Transform (FFT) algorithm. - The optional vector argument SIZE may be used to specify the dimensions of the array 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 FFT. - Otherwise, if an element of SIZE is larger than the corresponding dimension, then A is resized and padded with zeros. - Calling sequence: - Y = fftn(A) - Y = fftn(A, SIZE) - Parameters: - A: Matrix, the input data for which the FFT is computed. - SIZE: Optional vector specifying the dimensions of the output array. If provided, the dimensions of A are adjusted accordingly. - Examples: - fftn([6 9 7 ;2 9 9 ;0 3 1],[2 2]) - ans = - 26. -10. - 4. 4. - */ + function y = fftn(A, SIZE) +// Description: +// This function computes the N-dimensional discrete Fourier transform of A using a Fast Fourier Transform (FFT) algorithm. +// The optional vector argument SIZE may be used to specify the dimensions of the array 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 FFT. +// Otherwise, if an element of SIZE is larger than the corresponding dimension, then A is resized and padded with zeros. +// Calling sequence: +// Y = fftn(A) +// Y = fftn(A, SIZE) +// Parameters: +// A: Matrix, the input data for which the FFT is computed. +// SIZE: Optional vector specifying the dimensions of the output array. If provided, the dimensions of A are adjusted accordingly. +// Examples: +// fftn([6 9 7 ;2 9 9 ;0 3 1],[2 2]) +// ans = +// 26. -10. +// 4. 4. + funcprot(0); // Get the number of input arguments rhs = argn(2); |