problem in preallocation
信息
此问题已关闭。 请重新打开它进行编辑或回答。
显示 更早的评论
hi, I used data with huge size, so I did preallocation A(147611,30977)=zeros But , I got this message: ??? Maximum variable size allowed by the program is exceeded.
what i have to do in this case?
thanks in advance
0 个评论
回答(1 个)
Titus Edelhofer
2011-11-10
0 个投票
Hi Huda,
before going on waht you can do other, you are aware, that a matrix of size 147611x30977 will need approx. 34GB of memory?
Titus
6 个评论
huda nawaf
2011-11-10
Titus Edelhofer
2011-11-10
Either use sparse matrices or process your data in chunks instead of one large matrix ... Other then this general advice would require some words where your huge data comes from and what you want to do with it ...
huda nawaf
2011-11-10
Titus Edelhofer
2011-11-10
Hi,
1.92GB is large, but still far away from 34. How did you get to the size 147611x30977? Are the numbers in the file only integers? If you read them from file, you don't need to preallocate (depending on how you read).
Titus
huda nawaf
2011-11-10
Walter Roberson
2011-11-10
I do wonder whether the "social network"'s web site's Terms and Conditions allow this use of the data?
Anyhow, sounds to me like a good place to use cell arrays, or perhaps struct.
此问题已关闭。
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!