필터 지우기
필터 지우기

How can I run code just after GUI initialization?

조회 수: 5 (최근 30일)
Andrew
Andrew 2014년 3월 28일
댓글: Andrew 2014년 3월 28일
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
Sara 2014년 3월 28일
Then put the call to that function in the OpeningFcn (as Image Analyst has also suggested)
Andrew
Andrew 2014년 3월 28일
Ok, thanks. I'll try it!

댓글을 달려면 로그인하십시오.

답변 (1개)

Image Analyst
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.

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by