필터 지우기
필터 지우기

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

조회 수: 9 (최근 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
Walter Roberson
Walter Roberson 2012년 4월 7일
Where is Jan's clear-all rant when you need it?
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