App: differentiate shared callback
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
In the app, I want to share a callback between two buttons (app.Button1 and app.Button2). However, I want the action to be slightly different if Button1 is pushed vs Button2: something on the order of x=1 vs x=3.
Is there a way to detect, in the callback, which button triggered it?
(Matlab 2018a)
2 commentaires
Geoff Hayes
le 18 Mai 2018
Jessica - what does the signature for your callback look like? Isn't there a src input parameter?
Réponses (0)
Voir également
Catégories
En savoir plus sur Develop Apps Using App Designer dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!