GUiDE, is there a difference between setting up properties in OpeningFcn and setting them on the createFcn of each gui element?
조회 수: 1 (최근 30일)
이전 댓글 표시
Is there a reason to choose one over the other, besides code modularity?
댓글 수: 0
채택된 답변
Shashank Prasanna
2013년 1월 25일
OpeningFcn is specific to guide GUIs and will run each time the guide GUI is executed. http://www.mathworks.com/help/matlab/creating_guis/initializing-a-guide-gui.html
CreateFcn on the other hand is a figure property defined here: http://www.mathworks.com/help/matlab/ref/figure_props.html This is executed when MATLAB creates a figure object
If you are working on a GUIDE GUI and want to manager data in the GUIDE GUI, its recommended to use openingfcn, as explained in the first link above.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!