nanpolyarea(x,y)

Calculate the area of polygons, separated by NaN's
183 Downloads
Updated 27 Jan 2015

View License

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 Linux
Tags Add Tags

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.2.0.0

restricted to only positive outcome

1.1.0.0

changed line 63&64

1.0.0.0