MATLAB Guide closing Question

1 vue (au cours des 30 derniers jours)
Mitch Lautigar
Mitch Lautigar le 3 Déc 2021
Commenté : Mitch Lautigar le 13 Déc 2021
Hello everyone,
I have built a gui in MATLAB guide and am needing to know what parameter/flag is set to 1 when you close out a gui. Here's an example of what i'm trying to do:
User opens gui, puts in some data, and then has something happen where they need to close the GUI. They hit "x" and they see a message saying "test gui has been closed." This message is important because there are background processes programmed into the gui I want to be able to stop so that when the user closes the GUI, they know the MATLAB workspace is at its neutral state.
  1 commentaire
Rik
Rik le 3 Déc 2021
I would suggest moving away from GUIDE in the first place, but if you insist, doesn't it automatically generate a function that runs when you close the GUI? You can set any flag you'd like there.
In a normal situation I would suggest setting the closereqfcn.

Connectez-vous pour commenter.

Réponse acceptée

Shravan Kumar Vankaramoni
Shravan Kumar Vankaramoni le 9 Déc 2021
Hi Mitch,
If you are trying to throw an alert message on hitting the close button, you can refer the below page
  1 commentaire
Mitch Lautigar
Mitch Lautigar le 13 Déc 2021
thank you!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Migrate GUIDE Apps dans Help Center et File Exchange

Produits


Version

R2018a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by