Area, Centroid, and Moment of Inertia of a Polygon
Version 1.0.4 (1.2 KB) by
Ayad Al-Rumaithi
Finds area, centroid, moment of Inertia and higher order moments of arbitrary polygonal shapes.
Area=MOMENT(polygon,0,0)
Cx=MOMENT(polygon,1,0)/Area
Cy=MOMENT(polygon,0,1)/Area
Ixx=MOMENT(polygon,0,2)
Iyy=MOMENT(polygon,2,0)
Ixy=MOMENT(polygon,1,1)
where: the function MOMENT is defined as:
function M=MOMENT(polygon,m,n)
Input:
-------
Polygon is a structure contains coordinates vectors Polygon.x and Polygon.y
m:is the order of moment in x-direction
n:is the order of moment in y-direction
Output:
----------
M: Moment
References:
------------------
Kawakami, M., and Amin Ghali. "Time-dependent stresses in prestressed concrete sections of general shape." PCI journal 41.3 (1996).
Cite As
Ayad Al-Rumaithi (2025). Area, Centroid, and Moment of Inertia of a Polygon (https://www.mathworks.com/matlabcentral/fileexchange/70090-area-centroid-and-moment-of-inertia-of-a-polygon), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2009b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Elementary Polygons in Help Center and MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.