Interactive drafting tools in app designer

7 vues (au cours des 30 derniers jours)
Abdelrahman Taha
Abdelrahman Taha le 7 Fév 2020
Hi,
I want to build an app in which the user will draw some shape, and then i will use the points' coordinates in this sketch to do some calculations. Is there some tool in matlab that could help me achieve this interaction?
Thanks

Réponses (1)

Puru Kathuria
Puru Kathuria le 27 Déc 2020
You might want to use UIAxes for your requirements.
You can have a On/Off toggle, while the switch is on, you would like to retreive pixel coordinates of the mouse clicks in the code for further calculation and while the switch is turned off, return nothing. To acheive the same, please look into this thread.
And if you want to draw shapes in UIAxes then you might look into this thread.
For drawing freehand shapes, try looking into this thread.
Hope it helps!

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!

Translated by