I have a program that is on the limit of using all the available memory. I have done all I can to increase the memory limit but because the student edition is 32-bit the limit is 2Gb (correct me if I am wrong please). Below is >>memory when started up.
Maximum possible array: 2046 MB (2.146e+009 bytes) *Memory available for all arrays: 3275 MB (3.434e+009 bytes) **Memory used by MATLAB: 474 MB (4.974e+008 bytes)Physical Memory (RAM): 3882 MB (4.071e+009 bytes)* Limited by contiguous virtual address space available.** Limited by virtual address space available.
Therefore I need to optimise my code to work within these small memory limits. The error comes from here:
??? Error using ==> timesOut of memory. Type HELP MEMORY for your options.Error in ==> couple at 58 k = idx1.*100e6 + idx2.*10e6 + idx3.*10 + idx4.*10e6 + idx5.*100e6;
The size of idx is (2.6e5, 200). Is there any way to optimise the code to allow a larger matrix to be computed. The matrix has been generated from ODE45, however, reducing the accuracy even further is undesirable.
Thank you for your assistance.
Best Answer