fft2

2-D fast Fourier transform.

📝 Syntax

  • Y = fft2(X)

  • Y = fft2(X, m, n)

📥 Input argument

  • X - Input array.

  • m - Number of transform rows.

  • n - Number of transform columns.

📤 Output argument

  • Y - a vector, matrix, N-D array: frequency domain representation.

📄 Description

Y = fft2(X) returns the two-dimensional Fourier transform ofX using a Fast Fourier Transform (FFT) algorithm.

Optional arguments m andn may be used specify the number of rows and columns ofX to use.

If either of these is larger than the size of X,X is resized and padded with zeros.

IfX is a multi-dimensional matrix, each two-dimensional sub-matrix ofX is treated separately.

💡 Example

R = fft2(eye(5, 5), 2, 3)

🔗 See also

fftn, fft.

🕔 History

Version
📄 Description

1.0.0

initial version

Last updated

Was this helpful?