Surface areas of contour

This function outputs surface areas within each contour and their heights.

You are now following this Submission

[ A ] = ContourArea( C )
C is a 2*n matrix corresponding to the output of the low-level contourc function. A is a 2*m matrix, the first line corresponding to the m heights specified in C and the second line corresponding to the output of Polyarea of each contour.

This function is straight forward and is no rocket science. Could be improved by adding as input the number of contours for vectorization.

Cite As

HY (2026). Surface areas of contour (https://www.mathworks.com/matlabcentral/fileexchange/40111-surface-areas-of-contour), 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.0.0.0