Calculating arc length of a curve

23 vues (au cours des 30 derniers jours)
Hari krishnan
Hari krishnan le 19 Nov 2018
Commenté : Hari krishnan le 19 Nov 2018
I have the trajectory for an object moving on a plane as shown in the figure. Can any one give me an idea to calculate the arc length of this curve? Sample data along with the trajectory plot is attached.

Réponse acceptée

Torsten
Torsten le 19 Nov 2018
Use Pythagoras' theorem:
n = numel(x);
length = 0.0;
for i = 1:n-1
length = length + sqrt( (x(i+1)-x(i))^2 + (y(i+1)-y(i))^2 );
end
  6 commentaires
Torsten
Torsten le 19 Nov 2018
https://en.wikipedia.org/wiki/Curvature
Hari krishnan
Hari krishnan le 19 Nov 2018
@ Torsten, I have seen this before. This is to calculate how curvous the trajectory or line is. But what i want to see is how tortous the trajectory is, which can be calculated as the arc length divided by the eucledian distance between the initial and final set of points.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur 3-D Scene Control dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by