nanpolyarea(x,y)
Version 1.2.0.0 (2.29 KB) by
Bas Altena
Calculate the area of polygons, separated by NaN's
Uses the method by Allan ("Math for mapmakers"), though note that it does not work for negative coordinates. However on the otherhand it doesn't use loops.
Cite As
Bas Altena (2024). nanpolyarea(x,y) (https://www.mathworks.com/matlabcentral/fileexchange/49179-nanpolyarea-x-y), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2013b
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.