Surface area

Calculate surface area and centroid of a surface or mesh.
976 Downloads
Aktualisiert 15. Aug 2017

Lizenz anzeigen

Syntax:
[totalArea, areas, centroid] = surfarea(x,y,z)
[totalArea, areas, centroid] = surfarea(h), where h is a handle to a Surface object.


surfarea calculates the total surface area as well as returns the areas of each individual cell, along with the area centroid of the surface.
Example: Plot peaks, coloring each cell with its own area.
[x,y,z] = peaks;
[area,cellAreas,centroid] = surfarea(x,y,z);

h = surf(x,y,z,cellAreas); axis image
title(sprintf('Total surface area: %.2f', surfarea(h)));

Zitieren als

Sky Sartorius (2026). Surface area (https://de.mathworks.com/matlabcentral/fileexchange/62992-surface-area), MATLAB Central File Exchange. Abgerufen.

Kompatibilität der MATLAB-Version
Erstellt mit R2016a
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu Surface and Mesh Plots finden Sie in Help Center und MATLAB Answers
Quellenangaben

Inspiriert von: disperse

Version Veröffentlicht Versionshinweise
1.2.0.0

Eliminated need for disperse tool.

1.1.0.0

Added centroid calculation.

1.0.0.0