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.
[ 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 LinuxCategories
Find more on Surface and Mesh Plots 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.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
