When I create Java arrays in MATLAB, it appears that there is a loss in available memory after the array is cleared. For example, I might execute the following code:
feature memstatsja = javaArray('javax.swing.JFrame',10000000);clear all;feature memstats
The memory statistics shown seem to indicate a loss in physical memory.
Best Answer