Filter löschen
Filter löschen

How can I run code just after GUI initialization?

5 Ansichten (letzte 30 Tage)
Andrew
Andrew am 28 Mär. 2014
Kommentiert: Andrew am 28 Mär. 2014
I just want to run my code automatically after GUI has initialized. Any suggestion how can I do it?
Thanks in advance.
Andrew
  4 Kommentare
Sara
Sara am 28 Mär. 2014
Then put the call to that function in the OpeningFcn (as Image Analyst has also suggested)
Andrew
Andrew am 28 Mär. 2014
Ok, thanks. I'll try it!

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Image Analyst
Image Analyst am 28 Mär. 2014
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.

Kategorien

Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by