File Exchange

image thumbnail

arclength

version 1.0 (3.26 KB) by

Compute the arclength of a general curve in any number of dimensions

49 Downloads

Updated

View License

Editor's Note: 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.

Comments and Ratings (12)

thanks

Qingyu

Qingyu (view profile)

Many thanks!

Joe Passman

Daniel

Daniel (view profile)

Narjes

Narjes (view profile)

Hi:
I have a project for measuring Retinal vessel tortuosity and the length of them.
Can any body help me? thank you

William

Excellent software. Works exactly as stated, and linear algorithm is alarmingly fast.

KSSV

KSSV (view profile)

KSSV

KSSV (view profile)

Thanks God.....I got it... at last..

Mark Shore

I must say it's strange to see a D'Errico contribution receive 2 stars.

So I'll repost my original rating (lost when John temporarily removed this contribution last year).

KSSV

KSSV (view profile)

KSSV

KSSV (view profile)

MATLAB Release
MATLAB 7.12 (R2011a)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video