If I open my GUI from the folder where it is located, the tool bar buttons do not function. The toolbar is there but pressing the button does nothing.
However, the buttons do work when I press new, then GUI, then open existing GUI, and select the same GUI. Why does the coding work in this method but not the other?

 Réponse acceptée

Steven Lord
Steven Lord le 2 Sep 2015

0 votes

How are you opening the GUI in the first case? Are you double-clicking the figure file or opening it with OPENFIG or do you run the GUI function?

4 commentaires

shannon stoffel
shannon stoffel le 2 Sep 2015
I was opening the fig file. I ended up manually coding each button, instead of using the defaults and that ended up solving the issue. So I am curious to as if there is a problem with their defaults right now. So if anyone else has this issue, change the buttons manually!
Steven Lord
Steven Lord le 2 Sep 2015
To start a GUIDE-generated GUI, you MUST run the function file. Running the function file initializes the GUI; opening the figure file alone skips that initialization.
shannon stoffel
shannon stoffel le 2 Sep 2015
Hmm well the way I opened it still worked for me perfectly
shannon stoffel
shannon stoffel le 3 Sep 2015
thanks for the help though! I just wanted my GUI to be opened in any form in case they have no experience with Matlab!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Environment and Settings 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!

Translated by