Borrar filtros
Borrar filtros

Why does GUI get disappeared after GUI initialization?

1 visualización (últimos 30 días)
Mohammad Shahbazy
Mohammad Shahbazy el 2 de Abr. de 2020
Comentada: Rik el 3 de Abr. de 2020
Hi All,
I am writting a GUI via GUIDE. I add many bottons and tasks to the GUI, and run it one time after starting MATLAB, then it works properly.
But when I close the GUI window, add something, and re-run via GUI.fig or GUI.m, the GUI showing is stopped after initialization. When I run "set(mygui,'Visible','on');" in the command window, it appears and works. Moreover, when I restart the MATLAB, it works properly as well. Why after one time testing, it is going to be off in the term of visibility?
Where can I add this line in my GUI to fix this problem? I use MATLAB R2018b and apply the instructions in the following link but it has not worked.
Thanks you so much in advance
  3 comentarios
Mohammad Shahbazy
Mohammad Shahbazy el 3 de Abr. de 2020
Thanks Rik for your reply.
Would you please guide me how can I put this line "set(mygui,'Visible','on');" into the GUI code to keep visibility as "on"? My GUI is tricky and it takes time to run it for one time and then re-run that to check.
Rik
Rik el 3 de Abr. de 2020
The suggestion by Adam should work. Otherwise you could try putting that line in the opening function.
If you would have used a programmatic GUI you wouldn't have had this problem.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by