array exceeds maximum array size preference
이전 댓글 표시
i had this error :
Requested 65536x65536 (32.0GB) array exceeds maximum array size preference. Creation of arrays greater than this
limit may take a long time and cause MATLAB to become unresponsive. See array size limit or preference panel for
more information.
AT LIGNE n°3:
- s_old = s;
- s = [s(N*M-L+1:N*M);s];
- EYE_MAT = eye(length(s_old));
- PI_mat = [EYE_MAT(:, 2:end) EYE_MAT(:, 1)];
can some one help me pllllz !
댓글 수: 7
Torsten
2024년 6월 3일
What kind of help do you expect from us ?
Either reduce the size of your problem or buy more RAM for your computer.
Steven Lord
2024년 6월 3일
Without knowing what you're trying to do, it's going to be difficult or impossible to offer any concrete guidance for how to avoid the array size preference limit. You could turn off the preference, but as the message says trying to create a really large matrix may take a LONG time (or may not be possible on your machine at the moment.)
If you tell us (in words not code) what your ultimate goal is with this s array we may be able to suggest an alternate approach that avoids creating a huge matrix. Don't assume we know anything about the problem you're trying to solve; start from the beginning.
amani
2024년 6월 3일
Steven Lord
2024년 6월 3일
Please provide more detail. What you'd told us is like telling your mechanic "My car makes a funny noise when I drive it." That could be something minor (one of your bumper stickers is slightly loose and is flapping around) or it could indicate your engine is about to seize up and require complete replacement. The fixes for those two issues are obviously quite different!
amani
2024년 6월 7일
Torsten
2024년 6월 7일
If you have a PC with 16 GB RAM and the eye array alone needs 32 GB, shouldn't this tell you that you have to reduce the problem size or buy a new PC ?
amani
2024년 6월 7일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!





