How to save result of GUI before closing?
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hi everyone, I want to know if there is any option that can be added to GUI so that if the user accidentally close GUI bring a message like "Do you want to close the GUI?" with Yes and No answer and if it was yes, information be saved.
0 Commenti
Risposte (1)
Walter Roberson
il 9 Ago 2018
See https://www.mathworks.com/help/matlab/ref/matlab.ui.figure-properties.html#buiwuyk-1-CloseRequestFcn for an example of prompting the user .
To save the information, you can save() or xlswrite() or whatever is appropriate for the way you want to store the information.
0 Commenti
Vedere anche
Categorie
Scopri di più su Migrate GUIDE Apps in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!