a*********k 发帖数: 17 | 1 需要解一个矩阵方程,4000*4000(复数系数),计算机内存为2G,从Task Manager看可用内存
还有1.3G,但是matlab老是提示内存不足,拒绝执行. 版本6.3.
大虾们提示一下怎么解决这个问题.需要修改环境变量吗? | x*****u 发帖数: 3419 | 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. : 大虾们提示一下怎么解决这个问题.需要修改环境变量吗?
| a*********k 发帖数: 17 | 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
|
|