Predetermine impoly polygon vertices
조회 수: 2 (최근 30일)
이전 댓글 표시
Is it possibly to predetermine how much points/number of vertices I can click using impoly?
댓글 수: 0
채택된 답변
Cam Salzberger
2017년 10월 19일
Hello Dan,
Using impoly in interactive mode does not allow for you to limit the user to a certain number of datapoints. If you know that you want an aligned rectangle, you could use imrect, but I'm guessing that's not what you're looking for.
You could make your own function relatively simply using ginput, which does allow you to put a limit on the number of clicks. Or you call it in a loop and draw lines between the points in between each click.
-Cam
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Data Exploration에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!