MATLAB memory accumulation during batch printing of numbers

I print a large number of drawings to files. After a certain number, I get an error from the memory, which is also reported by many other people.

This question fixes the problem, but I cannot use this solution because I print various kinds of graphs, including surface, graph, contour, quiver, and scatter.

Is there a practical solution or possible workaround for this memory problem that would allow all image printing to start in an uncontrolled batch?

+2
source share
1 answer

. , Matlab . , .

% item 1
f = figure;
% plot
% print
close(f)

% item 2
f = figure;
% plot
% print
close(f)
+3

All Articles