How can I call an event Function in AppDesigner
Afficher commentaires plus anciens
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 commentaires
Guillaume
le 2 Avr 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
le 2 Avr 2019
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Develop Apps Using App Designer dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
