From: J RP on
I would much prefer if MATLAB would just give me an "Out of Memory" message and refuse to continue executing my code if/when it runs out of physical RAM and feels the need to start using virtual memory. The reason is that virtual memory is so slow on my computer that I usually need to kill MATLAB or perform a hard reboot (or wait a week!) on my system if I accidentally run any sort of code that exhausts my RAM (64-bit MATLAB on Windows Vista 64-bit FYI).

Is there a way to do this in MATLAB, or must I just limit my virtual memory via the OS settings?