Variables created within function are cleared from workspace after reaching error
Afficher commentaires plus anciens
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?
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Whos dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!