필터 지우기
필터 지우기

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
Ameer Hamza
Ameer Hamza 2020년 11월 18일
Creating a listener seems to be the only solution for polygons.

댓글을 달려면 로그인하십시오.

추가 답변 (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