Were you having some problem translating the wikipedia formula into MATLAB code: http://en.wikipedia.org/wiki/Centroid#Centroid_of_polygon? If so, post your MATLAB code and we'll help. You might split the polygon into triangles and use the law of cosines and law of sines to find the vertex coordinates:
HELP:::::How To Find The CENTRAL Point
1 次查看(过去 30 天)
显示 更早的评论
Hello Guys
I have this question for you today, i really tried to solve it but i faced some problems to do so, my question is to find the central point for arbitrary shape, i have this shape and i hope you to help me to find the central point.
![](https://www.mathworks.com/matlabcentral/images/broken_image.png)
0 个评论
回答(1 个)
另请参阅
类别
在 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!