matlab2020a increasingly taking more memory as program running
1 view (last 30 days)
Show older comments
Y. Li on 24 May 2020
Commented: Y. Li on 28 May 2020
I have posted a question regarding this but get no answer. The question is here:https://www.mathworks.com/matlabcentral/answers/531558-matlab-2020a-crash-due-to-out-of-memory
The problem can be reproduced with fellowing simple code only in release 2020a (well, only 2020a has this problem):
a = rand(100,100);
b = a.^2;
c = fft(a(:,1));
when running this code, despite no more variable is created, Matlab will take ~200kb more memory every second, and eventually dry out all memoery I have in few hours(days). It will need all those three lines in the loop to reproduce this problem somehow. 2019a does not have this problem.
Any insight regarding this?
Rajani Mishra on 26 May 2020
Question will be more clear if code is also provided. I tried code with above mentioned 3 lines in a loop running for 10000 times and it works fine. Possibly the infinite loop in the line " while 1 " is causing the problem.
Find more on Multidimensional Arrays in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!