MATLAB: Managing GUI memory usage

guimemory

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?

Best Answer

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