Curve fitting: Dividing spline into segments of equal length

3 ビュー (過去 30 日間)
Ben
Ben 2013 年 5 月 2 日
編集済み: Ege Erdem 2021 年 3 月 28 日
Hello
I have generated a spline(x) from two arrays (see appendix: red curve) and now I would like to sectionize the curve into segments of equal length (see appendix: blue points). In the end, the coordinates of the blue points are what I am actually looking for.
PS: If somebody can help me I can draw you something in paint :)
  3 件のコメント
Ben
Ben 2013 年 5 月 2 日
Thank you Zhang lu for commenting on my question! But how I understand you just divided the x-axis into equal segments and evaluated the spline (function) for each value. But this does not result in equal curvesegment lengths!
José-Luis
José-Luis 2013 年 5 月 2 日
編集済み: José-Luis 2013 年 5 月 2 日
What have you tried so far? Is this homework? If you want to do it numerically, a hint would be to do a double interpolation. First over the cumulative distances of the spline and the x coordinates of the spline (to find your x coordinates) then over the x and y coordinates of the spline to find your y coordinates.
If you want to do it analytically, then you would need to calculate the arc length first.

サインインしてコメントする。

回答 (1 件)

Mat Lic
Mat Lic 2019 年 5 月 5 日
  1 件のコメント
Ege Erdem
Ege Erdem 2021 年 3 月 28 日
編集済み: Ege Erdem 2021 年 3 月 28 日
Thanks man it really helped a lot.
Literally almost wasted a day trying to find the spline fitting function using finite sums and stuff.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeGet Started with Curve Fitting Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by