Calculating arc length of a curve
30 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
採用された回答
Torsten
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
6 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Multirate Signal Processing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!