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

Illustration
Beckham - 2021-03-16T10:03:31+00:00
Question: Why do I receive a segmentation violation when using the FFTN function?

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 answered . 2025-11-20

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]);


Not satisfied with the answer ?? ASK NOW

Get a Free Consultation or a Sample Assignment Review!