Create the smallest polygon enclosing set of points

조회 수: 4 (최근 30일)
Daniel Turon
Daniel Turon 2022년 6월 10일
댓글: Daniel Turon 2022년 6월 10일
I have a list of x and y points from which Im wanting to create a polygon that encloses. The issue falls in that many of the points will be points lying in the middle of the polygon rather than the edges. And so the following code..
P = [convVertX(:),convVertY(:)];
k = polyshape(P);
plot(k)
gives

채택된 답변

Walter Roberson
Walter Roberson 2022년 6월 10일
See boundary()

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Elementary Polygons에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by