三瞬属性matlab,matlab:out of memory 1

本文介绍了在不同操作系统(如UNIX、Linux、Windows NT/2000/XP)中如何增加交换文件大小以提升系统性能。同时,针对Windows系统,建议减少不必要的窗口以节省资源。在UNIX系统中,MATLAB使用后的内存不会立即释放,需要退出再重新加载变量来释放内存。
摘要由CSDN通过智能技术生成

问题三: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.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值