How can I run code just after GUI initialization?
5 次查看(过去 30 天)
显示 更早的评论
I just want to run my code automatically after GUI has initialized. Any suggestion how can I do it?
Thanks in advance.
Andrew
4 个评论
Sara
2014-3-28
Then put the call to that function in the OpeningFcn (as Image Analyst has also suggested)
回答(1 个)
Image Analyst
2014-3-28
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!