How to obtain coordinate using 'ginput' in the UIaxis when coding in Appdesigner
14 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Xiaotong WU
le 7 Août 2022
Modifié(e) : Adam Danz
le 7 Août 2022
When assigning the item in the Appdesigner, for example,
[x,y]=ginput(app.UIaxis,2);
it reminds the extra parameters. So how to obtain the coor of the plot using mouse interaction in the uiaxis? Any suggestion?
0 commentaires
Réponse acceptée
Walter Roberson
le 7 Août 2022
Modifié(e) : dpb
le 7 Août 2022
See https://www.mathworks.com/matlabcentral/answers/392617-how-can-i-use-ginput-in-app-designer#answer_504862 for code. Requires R2020b or later
4 commentaires
dpb
le 7 Août 2022
Aren't there still issues w/o an addressable target to ginput when there are multiple axes, UIAxes or not, when want/need to programmatically set with which the user is to interact?
There's a long discussion in the thread linked to in which it appears valid use cases are presented -- I didn't take the time to study those in excruciating detail so may have come to wrong conclusion, but seems like the target to address can still be an issue, visible or not.
Now that you're on board, I'm sure all these nits will be fixed sometime next week!!! :)
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Visual Exploration 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!