问题三:Increase the size of the swap file.
wap space的设置与使用的操作系统有关,具体的如下:
1.UNIX
Information about swap space can be procured by typing pstat -s at the UNIX command prompt. For detailed information on changing swap space, ask your system administrator.
2.Linux
Swap space can be changed by using the mkswap and swapon commands. For more information on the above commands, type man followed by the command name at the Linux prompt.
3.Windows NT
Follow the steps shown here: Right-click the My Computer icon, and select Properties. Select the Performance tab and click the Change button to change the amount of virtual memory.
4.Windows 2000
右键“我的电脑”->属性->高级->性能->设置,从而改变其虚拟内存。
5.Windows XP
右键“我的电脑”->属性->高级->性能->设置,从而改变其虚拟内存。
问题四:尽量少时用系统资源(对于Windows)
Windows中字体、窗口等都是要占用系统资源的,所以在Matlab运行时尽量不要打开不用的窗口。
问题五:Reloading Variables on UNIX Systems
由于我不使用UNIX系统,这里不介绍,直接从Help中粘过来
On UNIX systems, MATLAB does not return memory to the operating system even after variables have been cleared. This is due to the manner in which UNIX manages memory. UNIX does not accept memory back from a program until the program has terminated. So, the amount of memory used in a MATLAB session is not returned to the operating system until you exit MATLAB.
To free up the memory used in your MATLAB session, save your workspace variables, exit MATLAB, and then load your variables back in.