is there a function that receives 3 coordinates in X-Y as a matrix and calculates its Area and environment ?
조회 수: 1 (최근 30일)
이전 댓글 표시
is there a function that receives 3 coordinates in X-Y as a matrix and calculates its Area and perimeter and coordinates of Center area?
Please Help
댓글 수: 0
채택된 답변
추가 답변 (1개)
Walter Roberson
2021년 11월 21일
If you use the second output of boundary() then it will return the area.
The coordinates of the center of a set of 2D points, is the same as the mean() of each of the coordinates -- unless there is a non-uniform "weight" associated with the coordinates (for example if the core is denser then the edges.)
I do not know what "environment" means for the purpose of your question ?
참고 항목
카테고리
Help Center 및 File Exchange에서 Computational Geometry에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!