Area of polygon when the coordinates of its vertices are known uses Coordinate Geometry formula. https://www.mathopenref.com/coordpolygonarea.html. This method will produce the wrong answer for self-intersecting polygons, where one side crosses over another, as shown on the right. It will work correctly however for triangles, regular and irregular polygons, convex or concave polygons.
Habtamu Abraham (2021). ComputeCodes (https://github.com/HabtishCodeDude/ComputeCodes), GitHub. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!