"clear all" command not releasing entire memory

4 views (last 30 days)
Initially Memory available for all arrays: 3417 MB (3.583e+009 bytes) . After loading a file, Memory available for all arrays: 1635 MB (1.714e+009 bytes) . After "clear all" command,Memory available for all arrays: 2655 MB (2.784e+009 bytes) . It is not releasing entire memory. How to release the entire memory?

Answers (1)

Walter Roberson
Walter Roberson on 12 Jan 2016
"clear all" is not defined as clearing everything. See
Not mentioned there is that some items may be locked in memory:
also "clear all" has no effect on current graphics items.
I do not know if it has any effect on system libraries that might get called.
You could experiment with pack()

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!