|
Hi, My matlab program tend to eat the memory, I have used a cluster with 32G Memory and multi processor and still having problems, My question is abt the best way to manage memory, basically I know it depends on what the program do and the system being used. Here is the case, the program generates a huge matrix and do some calculations on each row recursively. My 1st Question is , does matlab alway loads the whole matrix to the memory even if the other values are not needed all the time? if so, is there a way to load only the values needed in a time and then clears those being used earlier and how to do that. The 2nd Question is after each calculation I need to save values incrementally in file , they don't need to still in memory. The last Question is if I am able to do that does it slow the execution of the simulation.
|