I have a memory problem with the "hist" command. It uses a lot of memory, and I have no idea how to clear it. I need to clear this memory since I am going Out of memory.
You can see this example:
memoryfor i=1:300[a]=hist(1);clear a;endclear i;memory
The "Memory used by Matlab" after doing hist 300 times is around 6 MB more, even if I am clearing "a" every time. Where is this memory going? How can I clear it?
Best Answer