How to overlap various polygons in a single diagram? Also how to find the global centroid for all of the plotted polygons?
조회 수: 1 (최근 30일)
이전 댓글 표시
I already have the answer to find the centroid of a single polygon, just need to know it's extension.
댓글 수: 0
답변 (1개)
Steven Lord
2019년 8월 1일
If you have a vector of polyshape objects, you can plot the vector to see all the polyshape objects in the same axes. Take the union of the vector of polyshape objects and compute the centroid of that unified polyshape.
댓글 수: 2
Steven Lord
2019년 8월 26일
What information do you have?
Vectors of coordinates of the vertices of the polygons? If so use those to construct polyshape objects and compute the centroid of the union of those objects.
Images / pictures of the polygons?
Something else?
참고 항목
카테고리
Help Center 및 File Exchange에서 Elementary Polygons에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!