在数字批量打印内存MATLAB连环相撞 [英] MATLAB memory pileup in batch printing of figures
问题描述
我印刷大量的数字来的文件。一定数量后,我得到了它很多其他人的报告,以及内存不足的错误。
I am printing a large number of figures to files. After a certain number, I get an out of memory error which a lot of other people have reported as well.
<一个href=\"http://stackoverflow.com/questions/10032117/why-does-matlab-slow-down-when-printing-lots-of-png-figures\">This问题解决了问题,但我不能,因为我打印各种图表,包括表面,绘制,轮廓,箭袋和散射的使用该解决方案。
This question addresses the problem, but I cannot use the solution as I am printing various kinds of graphs including surface, plot, contour, quiver and scatter.
是否有一个切实可行的解决方案或一个可行的办法解决这个内存堆积问题,将允许在无人监督的批量运行整个图像打印?
Is there a practical solution or a feasible workaround for this memory pileup problem that would allow to run the entire image printing in an unsupervised batch?
推荐答案
这似乎是一个内存泄漏。您可能能够帮助Matlab的由收盘每个人物释放泄漏的内存打印后。创建要打印每一件事情一个新的身影。
This seems like a memory leak. You may be able to help Matlab release the leaked memory by closing each figure after printing. Create a new figure for each thing you want to print.
% item 1
f = figure;
% plot
% print
close(f)
% item 2
f = figure;
% plot
% print
close(f)
这篇关于在数字批量打印内存MATLAB连环相撞的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!