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

MATLABprocessing

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?

Best Answer

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.