MATLAB: Do I receive a segmentation violation when using the FFTN function

fftnsegmentationSignal Processing Toolboxviolation

Why do I receive a segmentation violation when using the FFTN function?
If I run the following command at the MATLAB command prompt, I receive a segmentation violation:
X=rand(1000,3);
y=fftn(X, 1:100);

Best Answer

This bug has been fixed in Release 14 Service Pack 3 (R14SP3). For previous product releases, read below for any possible workarounds:
This has been reported to our development team to be addressed in a future version of MATLAB.
A more correct approach for the above command would be the following:
X=rand(1000,3);
y = fftn(X,[1, 100]);