Question
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);
Related Questions
Expert Answer
Prashant Kumar
PhD Expert
Answered Nov 20, 2025
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]);
Have a different question? Ask here