polygon_area
Version 1.0.0 (1.1 KB) by
Douglas Brunson
Computes the area of a 2D polygon with ordered list of vertices. Vertices are real-valued.
A = polygon_area(M) computes the area enclosed by the polygon having the ordered list of vertices (either clockwise or anticlockwise) contained in the matrix M, where the x coordinates are given in the first column, and the y coordinates given in the second column.
Cite As
Douglas Brunson (2024). polygon_area (https://www.mathworks.com/matlabcentral/fileexchange/73113-polygon_area), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2019b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- Mathematics and Optimization > Mapping Toolbox > Data Analysis > Vector Data >
- Radar > Mapping Toolbox > Data Analysis > Vector Data >
Find more on Vector Data 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.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0 |