Clear handle variables in GUI
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I made a GUI with user inputs stored in the handle structure. When I close the GUI and re-run it, the new variables that I stored in the handle (from the callbacks, not the createFcns) is still there, and retains the values from the last run. How do I fix this?
3 commentaires
Jan
le 23 Juin 2017
The data are not saved in the M-files, but in the figure. You can restore the former version of the fig file using the "recent versions" backup system, if you work under Windows.
Réponses (1)
Akhilesh Thakur
le 31 Juil 2017
When you close it use this delete(hObject); or delete(handles); this should be put at bottom of closerequestfucntion
0 commentaires
Voir également
Catégories
En savoir plus sur Migrate GUIDE Apps 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!