Create the smallest polygon enclosing set of points

4 vues (au cours des 30 derniers jours)
Daniel Turon
Daniel Turon le 10 Juin 2022
Commenté : Daniel Turon le 10 Juin 2022
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

Réponse acceptée

Walter Roberson
Walter Roberson le 10 Juin 2022
See boundary()

Plus de réponses (0)

Catégories

En savoir plus sur Elementary Polygons dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by