Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

Memory issue with UIGETDIR

1 Ansicht (letzte 30 Tage)
Matin Kh
Matin Kh am 29 Apr. 2015
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
Recently, I have noticed an odd behavior from uigetdir function of MATLAB.
If I have a string with some values, it has almost no effect on the memory.
>> memory
Maximum possible array: 860 MB (9.014e+08 bytes)
Memory available for all arrays: 1287 MB (1.349e+09 bytes)
Memory used by 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 for all arrays: 1289 MB (1.352e+09 bytes) **
Memory used by MATLAB: 434 MB (4.553e+08 bytes)
Physical Memory (RAM): 3317 MB (3.478e+09 bytes)
But if I use uigetdir instead, it drains down a whole lot of memory:
>> folder2 = uigetdir;
>> memory
Maximum possible array: 727 MB (7.628e+08 bytes) *
Memory available for all arrays: 1153 MB (1.208e+09 bytes) **
Memory used by MATLAB: 458 MB (4.806e+08 bytes)
Physical Memory (RAM): 3317 MB (3.478e+09 bytes)
And if I clear these two variables from my memory, it will not release the memory!
I looked it up, and found nothing on this issue anywhere.
First, I would like to know how to use (or what to use instead of) uigetdir effectively?
Second, I would like to know how to free the memory from some functions/variables like this?

Antworten (0)

Diese Frage ist geschlossen.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by