array exceeds maximum array size preference
조회 수: 29 (최근 30일)
이전 댓글 표시
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월 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 ?
채택된 답변
Mann Baidi
2024년 6월 7일
I observer that you are trying to create a 65536x65536 matrix in your script. You are getting the error due the maximum array size limitations in MATLAB. You can try removing the limitations for the maximum array size by unchecking the maximum array size limit checkbox from the preference panel following this path.
MATLAB >Preferences > Workspace > MATLAB array size limit.
댓글 수: 4
Mann Baidi
2024년 6월 7일
편집: Mann Baidi
2024년 6월 7일
You can refer to the following link for some other possible workarounds:
I would suggest to try 'tall' arrays
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!