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

New to MATLAB?

Managing GUI memory usage

Asked by Jared

Jared (view profile)

on 25 Jan 2013

When using GUIDE to develop a GUI, in the simulation mode, I run through the functionality loading files, plotting, resetting (which I have clearing and reallocating the data array-which are fairly large files). However, when I use the memory command in the matlab command window, the available memory continues to decrease. It never increases back to what it was when I first opened matlab, even after using the clear all command in matlab. What is using the memory?



Jared (view profile)



No products are associated with this question.

1 Answer

Answer by Jan Simon

Jan Simon (view profile)

on 25 Jan 2013
Accepted answer

The memory is freed on demand. Use pack to force a clearing of the memory.


Jan Simon

Jan Simon (view profile)

Contact us