Surface areas of contour

Version 1.0.0.0 (1.25 KB) by HY
This function outputs surface areas within each contour and their heights.
510 Downloads
Updated 31 Jan 2013

View License

[ 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 (2025). Surface areas of contour (https://se.mathworks.com/matlabcentral/fileexchange/40111-surface-areas-of-contour), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2012a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0