My MATLAB gets sluggish over time so I have to keep restarting it

11 次查看(过去 30 天)
My MATLAB gets sluggish over time so I have to keep restarting it. I think that when I'm running a heavy script quite a few times my computer's memory is not getting properly freed up after each one. Does anyone else get this?
  3 个评论
Tom
Tom 2012-4-8
Sorry - I missed that question. I'm using OS X Snow Leopard 10.6.8.
Matt Fig
Matt Fig 2012-11-2
Tom's question
My MATLAB gets sluggish over time so I have to keep restarting it. I think that when I'm running a heavy script quite a few times my computer's memory is not getting properly freed up after each one. Does anyone else get this?

请先登录,再进行评论。

采纳的回答

Image Analyst
Image Analyst 2012-4-6
If you're calling image or imshow a bunch of times that can slow things down, so call "cla reset" right before to clear out old images.

更多回答(2 个)

douglas
douglas 2012-4-6
maybe write
clear all
close all
clc
at the beginning of your script to ensure you dont have a ton of variables or figures open in the background.
  2 个评论
Daniel Shub
Daniel Shub 2012-4-7
In this case clear all might be a valid answer. Better would be to figure out what is slowing things down, in the absence of that clear all is a nice hammer.

请先登录,再进行评论。


Daniel Shub
Daniel Shub 2012-4-7
No, I do not get this. I will point back to one of the first questions I asked on Answers: href=""<http://www.mathworks.com/matlabcentral/answers/1093-how-do-i-reset-matlab-to-its-launched-state</a>>

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

标签

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by