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!