interactive drawpolygon for triangle, similar to drawrectangle and drawcircle

8 次查看(过去 30 天)
i want to code an interactive triangle,
i have saw a code for rectangles and circles, drawrectangle and drawcircle respectively
can i do the same for triangles?
if not, how do i make sure that the shape of the triangle is constant but allow enlargement and translation of the triangle?

采纳的回答

Ameer Hamza
Ameer Hamza 2020-11-18
  2 个评论
Adrian Lee
Adrian Lee 2020-11-18
i have used it
however it does not allow for the triangle to have constant shape while allow for expansion
i used a listener function to maintain shape
i was wondering if there is a way to do it without the listener function
just as drawrectangle has a method to do it
roi = drawrectangle('FixedAspecRatio', 'True');
By default drawrectangle fixed aspect ratio is true

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Triangulation Representation 的更多信息

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by