pre-allocate
조회 수: 5 (최근 30일)
이전 댓글 표시
hi, when I used x=zeros(211197)
I got product of dimension is greater than maximum integer. what I do? I used pre-allocate to avoid out of memory
thanks
댓글 수: 1
Jan
2011년 10월 22일
This has been answered in your former thread already: http://www.mathworks.com/matlabcentral/answers/17923-out-memory-problem
Please read the former answers carefully instead of trying to push me by email.
답변 (1개)
bym
2011년 10월 22일
you are creating a matrix [211197 x 211197]. do you want perhaps:
x= zeros(211197,1) % ?!
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!