MATLAB Answers


Managing GUI memory usage

Asked by Jared
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?




No products are associated with this question.

1 Answer

Answer by Jan Simon
on 25 Jan 2013
 Accepted answer

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


Join the 15-year community celebration.

Play games and win prizes!

Learn more
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

MATLAB Academy

New to MATLAB?

Learn MATLAB today!