Variables created within function are cleared from workspace after reaching error
Mostrar comentarios más antiguos
I'm running a MATLAB R2020b script that creates several variables within a function. Somewhere in the function, I am receiving an error, which causes these variables created before the error to disappear from my workspace window. This is making it hard to debug my code. How can I make sure these variables are kept in the workspace even after the error?
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Whos 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!