## Calculating arc length of a curve

Hari krishnan

### Hari krishnan (view profile)

さんによって質問されました 2018 年 11 月 19 日

### Hari krishnan (view profile)

さんによって コメントされました 2018 年 11 月 19 日
Torsten

### Torsten (view profile)

さんの 回答が採用されました
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.

#### 0 件のコメント

サインイン to comment.

## 1 件の回答

### Torsten (view profile)

2018 年 11 月 19 日
採用された回答

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

Hari krishnan

### Hari krishnan (view profile)

2018 年 11 月 19 日
If i want to find out how tortous tis trajectory is, what i thought was to find the arc length and then divide this by the eucledian distance between the initial and final point. This is how i was thinking about sinusoidity
Torsten

### Torsten (view profile)

2018 年 11 月 19 日
https://en.wikipedia.org/wiki/Curvature
Hari krishnan

### Hari krishnan (view profile)

2018 年 11 月 19 日
@ 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.

サインイン to comment.

Translated by