Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

problem in preallocation

조회 수: 2 (최근 30일)
huda nawaf
huda nawaf 2011년 11월 10일
마감: MATLAB Answer Bot 2021년 8월 20일
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

답변 (1개)

Titus Edelhofer
Titus Edelhofer 2011년 11월 10일
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
huda nawaf 2011년 11월 10일
in file there are integers and floating, but currently I read just integer.
I used just 1.92GB.
look please, in fact I convert that file into array
the structure of my file:
user id(integer) movie id(integer) rating(float)
in my file the id of users is frequent, so I try to place each user in row and draw his movie id and his rating .
So, the size of each row is different , and because i used preallocate i have to specify the size. I know the no. of rows but I don't know the no. of columns. So I give the largest(30977).
I'm on right or not?
please help me, I have in the same point since some days.
thanks
the array (147611*30977)
Walter Roberson
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!

Translated by