Why is nothing being stored in the "Workspace" after I run my code?
15 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Recap
el 24 de Mzo. de 2016
Comentada: Mohamad Ghaddar
el 15 de Feb. de 2021
I have a video processing code, its an ALPR program I am working on. But every time I run the code, none of the usual stuff that is stored in the Workspace of Matlab is getting stored. What could be the cause of this?
1 comentario
Stephen23
el 24 de Mzo. de 2016
Every function has its own workspace. This is a good thing, because it keep different code from affecting each other. You simply need to pass the desired variables as input and output arguments.
Respuesta aceptada
Image Analyst
el 24 de Mzo. de 2016
You're running a function instead of a script. The variables in the function are local and vanish once you exit the function. If you want to see what their values are, set a breakpoint on the last line of your function, just before it exits.
Más respuestas (1)
Stalin Samuel
el 24 de Mzo. de 2016
Possibly if you run the functions the variables will not stored in work space. Only the returned variables stored .If you not returned any values then nothing will be stored
Ver también
Categorías
Más información sobre Matrix Indexing 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!