28.12.2012 Views

Figure Properties - SERC

Figure Properties - SERC

Figure Properties - SERC

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

2fft2<br />

Purpose Two-dimensional discrete Fourier transform<br />

Syntax Y = fft2(X)<br />

Y = fft2(X,m,n)<br />

Description Y = fft2(X) returns the two-dimensional discrete Fourier transform (DFT) of<br />

X, computed with a fast Fourier transform (FFT) algorithm. The result Y is the<br />

same size as X.<br />

Y = fft2(X,m,n) truncates X, or pads X with zeros to create an m-by-n array<br />

before doing the transform. The result is m-by-n.<br />

Algorithm fft2(X) can be simply computed as<br />

Data Type<br />

Support<br />

fft(fft(X).').'<br />

This computes the one-dimensional DFT of each column X, then of each row of<br />

the result. The execution time for fft depends on the length of the transform.<br />

It is fastest for powers of two. It is almost as fast for lengths that have only<br />

small prime factors. It is typically several times slower for lengths that are<br />

prime or which have large prime factors.<br />

Note You might be able to increase the speed of fft2 using the utility<br />

function fftw, which controls how MATLAB optimizes the algorithm used to<br />

compute an FFT of a particular size and dimension.<br />

fft2 supports inputs of data types double and single. If you call fft2 with<br />

the syntax y = fft2(X, ...), the output y has the same data type as the input<br />

X.<br />

See Also fft, fftn, fftw, fftshift, ifft2<br />

fft2<br />

2-753

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!