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!