nanpolyarea(x,y)

Calculate the area of polygons, separated by NaN's

You are now following this Submission

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 (2026). nanpolyarea(x,y) (https://www.mathworks.com/matlabcentral/fileexchange/49179-nanpolyarea-x-y), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.2.0.0

restricted to only positive outcome

1.1.0.0

changed line 63&64

1.0.0.0