Why do I receive a segmentation violation when using the FFTN function?

B
Beckham · Mar 16, 2021 · 2.2K views
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);  
Expert Answer
Profile picture of Prashant Kumar
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

Get a Free Consultation or a Sample Assignment Review!