arclength

版本 1.0.0.0 (3.3 KB) 作者: John D'Errico
Compute the arclength of a general curve in any number of dimensions
7.2K 次下载
更新时间 2012/2/1

查看许可证

编者注: This file was selected as MATLAB Central Pick of the Week

The arclength function computes the length of a general space curve. This is not too difficult if the curve is assumed to be piecewise linear (a one liner) but if the curve is to be a smoothly interpolated spline, then the problem becomes more difficult.

A nice way to solve this problem for the cubic case is to formulate it as a numerical integration, whereupon the solution can be gained from quadgk. Carefully written code breaks the problem into a series of integrals between each pair of breaks on the curve to avoid the derivative singularities one would find otherwise.

引用格式

John D'Errico (2024). arclength (https://www.mathworks.com/matlabcentral/fileexchange/34871-arclength), MATLAB Central File Exchange. 检索来源 .

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

Community Treasure Hunt

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

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