MATLAB: MATLAB is slow due to inefficient memory management

MATLAB

MATLAB is using only 10GB out of 32GB of RAM for processing huge data files. As a result, MATLAB becomes very slow. Is there a way to allow it to use more of the available memory?

Best Answer

You can increase the Java Heap Memory in MATLAB to allow MATLAB to use more memory.
To increase the Java Heap Size from MATLAB desktop, select:
Home tab -> Preferences -> General -> Java Heap Memory