How can I run code just after GUI initialization?
Mostrar comentarios más antiguos
I just want to run my code automatically after GUI has initialized. Any suggestion how can I do it?
Thanks in advance.
Andrew
4 comentarios
Sara
el 28 de Mzo. de 2014
Which kind of code? A matlab code or an EXE? In any case, you can just call the code you want to run in the OpeningFcn.
Andrew
el 28 de Mzo. de 2014
Sara
el 28 de Mzo. de 2014
Then put the call to that function in the OpeningFcn (as Image Analyst has also suggested)
Andrew
el 28 de Mzo. de 2014
Respuestas (1)
Image Analyst
el 28 de Mzo. de 2014
0 votos
If it's something you built with GUIDE, then there is a function called yourApp_OpeningFcn(). That is where you're supposed to put most or all of your initialization stuff. If it's just a script where you're building your own GUI then just add the initialization code at the end of your script.
Categorías
Más información sobre Startup and Shutdown en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!