How can I call an event Function in AppDesigner
이전 댓글 표시
Hello,
I want to call in the startupFcn an Event Function from my Switch. If I set progammily the Value from the Switch to 'Off', they changed only the Value. But I want to call the event Function from this Switch, if I start the App in AppDesigner. How can I do this?
댓글 수: 2
Guillaume
2019년 4월 2일
Your question is not very clear.
Nonetheless, event functions are just normal functions, you can call them from any other function (as long as you pass it the arguments it requires).
However, it's very unusual to have to call a startupFcn once your app is started. As the name indicates, it's only supposed to be called at the start to initialise the app. If there is part of the startup that you want to repeat at a later time, then you would be better off extracting that repeating part into its own function, that you'd call from the startupFcn and whichever other function you'd want.
Boris Gromann
2019년 4월 2일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
