Error out of memory
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello, i created a algoritm and it need to run some matrixs, i runned for several cases but when was necessary to run a matrix 20402x20402 after 2 hours occorred an error, about "out of memory" it is very important accomplishment this stage. There is a way to set right this?
0 commentaires
Réponses (1)
James Tursa
le 23 Oct 2018
Modifié(e) : James Tursa
le 23 Oct 2018
Type the following at the command line:
dbstop if error
Then run your code. When the error occurs, the code will pause with all variables intact. Examine the sizes etc involved to figure out why your code is requesting too much memory. A numeric matrix size 2040x2040 by itself isn't going to be a problem on any modern machine, so there must be something else going on (e.g., maybe you are storing a bunch of these in a loop and you finally broke the bank, etc).
1 commentaire
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!