How to fix this error please?
Afficher commentaires plus anciens
Error using eye
Requested 57660x57660 (24.8GB) 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.
Error in Ex11_Bayes_AVO_Inversion (line 79)
Sigma_e = var_e*eye(nt*ntheta); % White noise covariance
4 commentaires
Walter Roberson
le 14 Juin 2021
What is the value of nt*ntheta?
Perhaps speye() would make more sense.
Nisar Ahmed
le 15 Juin 2021
Walter Roberson
le 15 Juin 2021
okay but we don't know nt
We also don't know how nt or ntheta are calculated in order for us to assess if the values are necessarily that high
Nisar Ahmed
le 16 Juin 2021
Réponses (1)
Mann Baidi
le 5 Juin 2024
0 votes
I observer that you are trying to create a 59582x 59582 matrix in your script. You are getting the error due the maximum array size limitations in MATLAB. You can remove 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.

Catégories
En savoir plus sur Creating and Concatenating Matrices dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!