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.

fftn<br />

2fftn<br />

Purpose Multidimensional discrete Fourier transform<br />

Syntax Y = fftn(X)<br />

Y = fftn(X,siz)<br />

Description Y = fftn(X) returns the discrete Fourier transform (DFT) of X, computed<br />

with a multidimensional fast Fourier transform (FFT) algorithm. The result Y<br />

is the same size as X.<br />

2-754<br />

Y = fftn(X,siz) pads X with zeros, or truncates X, to create a<br />

multidimensional array of size siz before performing the transform. The size<br />

of the result Y is siz.<br />

Algorithm fftn(X) is equivalent to<br />

Data Type<br />

Support<br />

Y = X;<br />

for p = 1:length(size(X))<br />

Y = fft(Y,[],p);<br />

end<br />

This computes in-place the one-dimensional fast Fourier transform along each<br />

dimension of X. The execution time for fft depends on the length of the<br />

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

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

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

Note You might be able to increase the speed of fftn 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 />

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

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

X.<br />

See Also fft, fft2, fftn, fftw, ifftn

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

Saved successfully!

Ooh no, something went wrong!