%% Conjugate Symmetric Array
% For nearly conjugate symmetric arrays, you can compute the inverse Fourier transform faster by specifying the 'symmetric' option, which also ensures that the output is real.
% Compute the 3-D inverse Fourier transform of a nearly conjugate symmetric array.

Y(:,:,1) = [1e-15*i 0; 1 0];
Y(:,:,2) = [0 1; 0 1];
X = ifftn(Y,'symmetric')

% Copyright 2012 The MathWorks, Inc.