Redian新闻
>
matlab能管理多大的内存?>1G
avatar
matlab能管理多大的内存?>1G# Computation - 科学计算
a*k
1
需要解一个矩阵方程,4000*4000(复数系数),计算机内存为2G,从Task Manager看可用内存
还有1.3G,但是matlab老是提示内存不足,拒绝执行. 版本6.3.
大虾们提示一下怎么解决这个问题.需要修改环境变量吗?
avatar
x*u
2
不知道这个有没有用?http://www.mathworks.com/support/solutions/data/26623.html
Problem Description
How do I pre-allocate memory when using MATLAB? I have several FOR loops in my
M-file. I have tried using the PACK function, but I continue to get "out of
memory" errors.
Solution:
FOR loops can cause memory fragmentation problems because MATLAB does not know
how big the final matrix array will be upon the conclusion of the FOR loop.
For example, look at the following FOR loop:
for i=1:10
x(i)=i;
end
When th

【在 a*********k 的大作中提到】
: 需要解一个矩阵方程,4000*4000(复数系数),计算机内存为2G,从Task Manager看可用内存
: 还有1.3G,但是matlab老是提示内存不足,拒绝执行. 版本6.3.
: 大虾们提示一下怎么解决这个问题.需要修改环境变量吗?

avatar
a*k
3
Thanks a lot.
The problem occurs when I try to use inv(a) or a\b when a is (4000*4000). Any
idea?

不知道这个有没有用?http://www.mathworks.com/support/solutions/data/26623.html
my
know
x(1)=1.
this
the
can
allocates
If
for
loops

【在 x*****u 的大作中提到】
: 不知道这个有没有用?http://www.mathworks.com/support/solutions/data/26623.html
: Problem Description
: How do I pre-allocate memory when using MATLAB? I have several FOR loops in my
: M-file. I have tried using the PACK function, but I continue to get "out of
: memory" errors.
: Solution:
: FOR loops can cause memory fragmentation problems because MATLAB does not know
: how big the final matrix array will be upon the conclusion of the FOR loop.
: For example, look at the following FOR loop:
: for i=1:10

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。