Hello,
I create a GUI with Matlab which contains also a listbox. To fill the list box I have a function (fill_listbox).
Where have I to put this function, that the listbox is filled immediately after loading the GUI?
I solved this problem by clicking a button. Is there a more handy way?

 채택된 답변

Geoff Hayes
Geoff Hayes 2016년 3월 13일

1 개 추천

Simon - if you have created your GUI using GUIDE, then put this fill_listbox function in the _OpeningFcn of your GUI. Else, if you are creating your GUI programmatically, then you can call this function soon after you have created the controls and just before you show the GUI.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 MATLAB에 대해 자세히 알아보기

질문:

2016년 3월 13일

답변:

2016년 3월 13일

Community Treasure Hunt

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

Start Hunting!

Translated by