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

17 vues (au cours des 30 derniers jours)
Tom
Tom le 6 Avr 2012
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 commentaires
Tom
Tom le 8 Avr 2012
Sorry - I missed that question. I'm using OS X Snow Leopard 10.6.8.
Matt Fig
Matt Fig le 2 Nov 2012
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?

Connectez-vous pour commenter.

Réponse acceptée

Image Analyst
Image Analyst le 6 Avr 2012
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.

Plus de réponses (2)

douglas
douglas le 6 Avr 2012
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 commentaires
Walter Roberson
Walter Roberson le 7 Avr 2012
Where is Jan's clear-all rant when you need it?
Daniel Shub
Daniel Shub le 7 Avr 2012
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.

Connectez-vous pour commenter.


Daniel Shub
Daniel Shub le 7 Avr 2012
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>>

Catégories

En savoir plus sur Introduction to Installation and Licensing dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by