Matlab 2025b become unresponsive after running long iterations
The thing seems to get stuck after loading a lot of files.
Despite those files are not kept in the memory.
e.g.,
for i = 1 : 10000
filename = xxxx_i % different file each iteration
data = load(filename);
% then do something with data, and data is updated every iteration
end
and MATLAB becomes unresponsive after running the said code. The behavior is kind of reproducable in different scripts loading different files for different purposes. The common ground is they are all loading a lot of files, and Matlab gets stuck afterwards. The memoery useage is normal.
Appears to be a new issue starting from 2025b, 2025a doesn`t have this behavior.The thing seems to get stuck after loading a lot of files.
Despite those files are not kept in the memory.
e.g.,
for i = 1 : 10000
filename = xxxx_i % different file each iteration
data = load(filename);
% then do something with data, and data is updated every iteration
end
and MATLAB becomes unresponsive after running the said code. The behavior is kind of reproducable in different scripts loading different files for different purposes. The common ground is they are all loading a lot of files, and Matlab gets stuck afterwards. The memoery useage is normal.
Appears to be a new issue starting from 2025b, 2025a doesn`t have this behavior. The thing seems to get stuck after loading a lot of files.
Despite those files are not kept in the memory.
e.g.,
for i = 1 : 10000
filename = xxxx_i % different file each iteration
data = load(filename);
% then do something with data, and data is updated every iteration
end
and MATLAB becomes unresponsive after running the said code. The behavior is kind of reproducable in different scripts loading different files for different purposes. The common ground is they are all loading a lot of files, and Matlab gets stuck afterwards. The memoery useage is normal.
Appears to be a new issue starting from 2025b, 2025a doesn`t have this behavior. bug MATLAB Answers — New Questions









