Surface area

版本 1.2.0.0 (2.4 KB) 作者: Sky Sartorius
Calculate surface area and centroid of a surface or mesh.
868.0 次下载
更新时间 2017/8/15

查看许可证

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)));

引用格式

Sky Sartorius (2024). Surface area (https://www.mathworks.com/matlabcentral/fileexchange/62992-surface-area), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2016a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Surface and Mesh Plots 的更多信息
致谢

参考作品: disperse

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.2.0.0

Eliminated need for disperse tool.

1.1.0.0

Added centroid calculation.

1.0.0.0