Out of Memory error for Linux MATLAB
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hi everyone
I'm fairly new to MATLAB but I'd like to think I've progressed beyond an introductory user. However, I seem to be getting an unusual error scenario. The error is "Out of Memory" the unusual thing about it is that my computer claims to have the memory available, but I cant confirm this as Linux MATLAB doesn't give access to the memory function.
This error arises in a subroutine in my program and immediately before the subroutine I clear all variables aside from the two call variables and I get this error. If I run only the subroutine in the workspace with the two call variables I will not get the error.
This makes me think that there is some other kind of memory within MATLAB like function workspace memory that is causing the issue or some sort of fragmenting. There are no global or persistent variables declared so that is not the case.
does anyone have any ideas on what this could be or how to fix it? I could post the code but I prefer not to as it's a little over 4000 lines.
any help is greatly appreciated
1 comentario
Respuesta aceptada
the cyclist
el 12 de Abr. de 2011
It's hard to give much guidance when you are not able to post code. Oleg's suggestion is a good one. It will help you narrow down exactly which part of your code is causing the memory issue. (It might not be the exact line that throws the error, which might just be the straw the breaks the camel's back.)
Also, here is a page from the Mathworks documentation that might be useful:
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Programmatic Model Editing en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!