MATLAB Answers

How Matlab calculate the centroid of a polyshape?

26 views (last 30 days)
I am using the centroid command to find the centroids of polyshapes, but on the documentation I didn't find how Matlab calculates it... Somebody knows the formula used by Matlab centroid function?

Accepted Answer

David Franco
David Franco on 28 Apr 2020


David Franco
David Franco on 3 May 2020
I found a old paper with the formula derivation:
John K. Hall. Algorithms and programs for the rapid computation of area and center of mass. Computers & Geosciences, Volume 1, Issue 3, 1976, Pages 203-205.

Sign in to comment.

More Answers (0)




Community Treasure Hunt

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

Start Hunting!