matlab - Memory issue with UIGETDIR -
recently, have noticed odd behavior uigetdir
function of matlab.
if have string values, has no effect on memory.
>> memory maximum possible array: 860 mb (9.014e+08 bytes) memory available arrays: 1287 mb (1.349e+09 bytes) memory used matlab: 435 mb (4.557e+08 bytes) physical memory (ram): 3317 mb (3.478e+09 bytes) >> folder = 'c:\users\mrawesome'; >> memory maximum possible array: 860 mb (9.014e+08 bytes) * memory available arrays: 1289 mb (1.352e+09 bytes) ** memory used matlab: 434 mb (4.553e+08 bytes) physical memory (ram): 3317 mb (3.478e+09 bytes)
but if use uigetdir
instead, drains down whole lot of memory:
>> folder2 = uigetdir; >> memory maximum possible array: 727 mb (7.628e+08 bytes) * memory available arrays: 1153 mb (1.208e+09 bytes) ** memory used matlab: 458 mb (4.806e+08 bytes) physical memory (ram): 3317 mb (3.478e+09 bytes)
and if clear these 2 variables memory, not release memory!
i looked up, , found nothing on issue anywhere.
first, know how use (or what use instead of) uigetdir
effectively?
second, know how free memory functions/variables this?
Comments
Post a Comment