array exceeds maximum array size preference
Show older comments
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 Comments
Torsten
on 3 Jun 2024
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
on 3 Jun 2024
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
on 3 Jun 2024
Steven Lord
on 3 Jun 2024
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
on 7 Jun 2024
Torsten
on 7 Jun 2024
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
on 7 Jun 2024
Accepted Answer
More Answers (0)
Categories
Find more on Matrix Indexing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!




