Interactive drafting tools in app designer

1 回表示 (過去 30 日間)
Abdelrahman Taha
Abdelrahman Taha 2020 年 2 月 7 日
回答済み: Puru Kathuria 2020 年 12 月 27 日
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

回答 (1 件)

Puru Kathuria
Puru Kathuria 2020 年 12 月 27 日
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!

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by