how to clear variables when exit aplication?
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
How can i clear all variables on click X button???
0 commentaires
Réponses (1)
Image Analyst
le 14 Déc 2014
You can do
clear all;
or
clearvars;
Though when it leaves the button callback function it will clear everything anyway without calling clear. If you put that in a script rather than a function, it will clear variables in the base workspace.
6 commentaires
Image Analyst
le 28 Déc 2014
I see no reason why your program will run again when you exit it. Perhaps did you double-click the run button, or hits F5 twice, when you launched it? Otherwise we'd have to see the code. All I know is that my programs don't run again once I shut them down.
Voir également
Catégories
En savoir plus sur Startup and Shutdown dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!