Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
MATLAB sluggish after extended use on mac.

Subject: MATLAB sluggish after extended use on mac.

From: Joseph

Date: 28 Jan, 2013 19:45:09

Message: 1 of 3

I'm running MATLAB R2012a on my mid 2010 Macbook Pro (2.66 GHz i7, 8GB RAM)

When I first open MATLAB and do some work it runs quickly, but after an hour or two of work, it becomes very sluggish and delayed (the time between clicking or typing something and the action actually being performed increases).

The only solution I've found (more of a workaround) is completely killing the application and opening it again. Does anybody have any idea as to why this happens?

Subject: MATLAB sluggish after extended use on mac.

From: Joseph

Date: 28 Jan, 2013 19:58:09

Message: 2 of 3

"Joseph " <sarnelle@gmail.com> wrote in message <ke6kg4$pia$1@newscl01ah.mathworks.com>...

Just a quick update with more information. The files I am running are not too big for my computer to handle.

I have zero performance issues when running MATLAB r2012a in Boot Camp on Windows.

Subject: MATLAB sluggish after extended use on mac.

From: Yair Altman

Date: 29 Jan, 2013 07:15:08

Message: 3 of 3

"Joseph " <sarnelle@gmail.com> wrote in message <ke6kg4$pia$1@newscl01ah.mathworks.com>...
> I'm running MATLAB R2012a on my mid 2010 Macbook Pro (2.66 GHz i7, 8GB RAM)
>
> When I first open MATLAB and do some work it runs quickly, but after an hour or two of work, it becomes very sluggish and delayed (the time between clicking or typing something and the action actually being performed increases).
>
> The only solution I've found (more of a workaround) is completely killing the application and opening it again. Does anybody have any idea as to why this happens?


This sounds like a memory-related issue: either a typical Matlab memory leak situation, or due to extensive fragmentation. In both cases there is no easy solution other than to restart Matlab and/or the computer. (Matlab once suggested using the pack command but this is not really of any practical use)

One specific case where you might have an easier solution is if you're extensively using GUI and graphics. Many of Matlab's memory leaks are due to graphics and GUI. In such cases reusing the same graphic objects (e.g., don't create new figures and graphs but reuse existing ones by modifying their data) may delay the inevitable.

Yair Altman
http://UndocumentedMatlab.com
 

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us