How do I increase the amount of memory used by MATLAB?

67 views (last 30 days)
In one of my application when I tried to compute the PCA using princomp I received an "Out of memory" error. How can I rectify this problem?

Answers (5)

Paulo Silva
Paulo Silva on 1 Jul 2011
memory
Execute that command and read what MATLAB says.

Krishna Kumar
Krishna Kumar on 1 Jul 2011
go to start menu(assuming windows), right click on my computer, go to properties, go to advanced tab, click performance options and go to virtual memory section and change paging file size.
you can also use 'pack' command. refer its doc for details.

Jerry archamabult
Jerry archamabult on 21 Jun 2018
these answers are useless
  1 Comment
Steven Lord
Steven Lord on 21 Jun 2018
The original question didn't have a lot of details that would allow the posters to offer more detailed suggestions. If you're running into a problem where you're running out of memory, I recommend posting it as a new question (with as much detail as you can) and you may receive more specific guidance or suggestions.

Sign in to comment.


Jason Ross
Jason Ross on 1 Jul 2011
With RAM running about $10/GB, you can buy your way out of this problem for a small amount of money (assuming your system can take the additional RAM and that you are running a 64-bit OS)

Walter Roberson
Walter Roberson on 21 Jun 2018
If you are using 32 bit MATLAB on 32 bit Windows, then make sure you have enabled the boot-time /3G flag of your operating system. https://support.microsoft.com/en-ca/help/833721/available-switch-options-for-the-windows-xp-and-the-windows-server-200
Note: R2015b was the last MATLAB version for 32 bit Windows.

Community Treasure Hunt

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

Start Hunting!