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?

 Respuesta aceptada

Steven Lord
Steven Lord el 2 de Sept. de 2015

0 votos

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 comentarios

shannon stoffel
shannon stoffel el 2 de Sept. de 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 el 2 de Sept. de 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 el 2 de Sept. de 2015
Hmm well the way I opened it still worked for me perfectly
shannon stoffel
shannon stoffel el 3 de Sept. de 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!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Environment and Settings en Centro de ayuda y File Exchange.

Preguntada:

el 2 de Sept. de 2015

Comentada:

el 3 de Sept. de 2015

Community Treasure Hunt

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

Start Hunting!

Translated by