How can I call an event Function in AppDesigner
Ältere Kommentare anzeigen
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 Kommentare
Guillaume
am 2 Apr. 2019
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
am 2 Apr. 2019
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Develop Apps Using App Designer finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
