MATLAB“内存不足"错误 [英] MATLAB "out of memory" error

查看:193
本文介绍了MATLAB“内存不足"错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在MATLAB中运行示例脚本时,它说:

When I run a sample script in MATLAB, it says:

内存不足.输入HELP MEMORY作为您的选项.

Out of memory. Type HELP MEMORY for your options.

当我键入"memory"时,它会报告:

When I type "memory", it reports:

Maximum possible array:             156 MB (1.638e+008 bytes) *
Memory available for all arrays:    740 MB (7.756e+008 bytes) **
Memory used by MATLAB:             1054 MB (1.105e+009 bytes)
Physical Memory (RAM):             3070 MB (3.219e+009 bytes)

*  Limited by contiguous virtual address space available.
** Limited by virtual address space available.

有什么办法可以解决此错误?我正在将Windows XP x32与MATLAB 2009a配合使用.

Is there any way to get around this error? I'm using Windows XP x32 with MATLAB 2009a.

推荐答案

问题已解决.

在Windows XP x32下,我通过编辑boot.ini添加开关/3GB/USERVA = 3030设法使MATLAB的可用内存几乎增加了一倍

Under Windows XP x32, I managed to almost double the amount of memory available to MATLAB by editing boot.ini to add the switch /3GB /USERVA=3030

[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect /3GB /USERVA=3030

连同减小数组的大小,这完全解决了问题:)

Together with reducing our array sizes, this completely fixed the problem :)

我还可以通过升级到Windows x64或Windows 7 x64来解决此问题.即使您坚持使用MATLAB x32并且不升级到MATLAB x64,此操作也使MATLAB可用的内存量增加了一倍.即使安装了仅4 GB物理RAM的系统,Windows x64的内存效率也要高得多.

I could have also fixed the problem by upgrading to Windows x64 or Windows 7 x64. This act also doubles the amount of memory available to MATLAB, even if you stick with MATLAB x32 and don't upgrade to MATLAB x64. Windows x64 is just far more memory efficient, even with systems that only have 4 GB of physical RAM installed.

这篇关于MATLAB“内存不足"错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆