Why does running a script cause a memory error, while running the same script as a function does not?
Mostrar comentarios más antiguos
I have found that running a script as a script by simply calling it from the command line causes a memory error, yet, running the same script as a function does not. Does anyone know why this is the case?
5 comentarios
Matt J
el 2 de Feb. de 2016
We can't know why immediately. You haven't shown us the script/function that proves that it is true.
Robert
el 2 de Feb. de 2016
Moe_2015
el 2 de Feb. de 2016
You can attach the file here as a comment
Arnab Sen
el 23 de Feb. de 2016
Also can you post the exact error message.
Jos (10584)
el 23 de Feb. de 2016
How do you run a script as a function? Did you edit the m-file?
Respuestas (0)
Categorías
Más información sobre File Operations en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!