volRevolve

版本 1.0.0.0 (3.1 KB) 作者: Geoff Olynyk
Calculates the volume of a polygon revolved around the Z-axis. Standalone function.
245.0 次下载
更新时间 2012/5/4

查看许可证

This function calculates the volume of a polygon revolved around the Z-axis. Call using vol = volRevolve(R,Z), where R and Z are one-dimensional vectors tracing out a polygon (in the X-Z plane) and the output vol is the volume of the solid of revolution, in the same units as the inputs (cubed).

The R and Z vectors must be in order, counter-clockwise around the area being defined. If not, this function will give the volume of the counter-clockwise parts, minus the volume of the clockwise parts.

It does not matter if the curve is open or closed - if it is open (i.e., the last point doesn't overlap the first point), this function will automatically close it.

It is based on the technique in Advanced Mathematics and Mechanics Applications with MATLAB, 3rd ed., by H.B. Wilson, L.H. Turcotte, and D. Halpern, Chapman & Hall / CRC Press, 2002, e-ISBN 978-1-4200-3544-5. See Chapter 5, Section 5.4, doi: 10.1201/9781420035445.ch5

This function is standalone and does not require any other non-standard functions to exist.

引用格式

Geoff Olynyk (2024). volRevolve (https://www.mathworks.com/matlabcentral/fileexchange/36525-volrevolve), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2012a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Scalar Volume Data 的更多信息
致谢

参考作品: Area and volume properties

Community Treasure Hunt

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

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