필터 지우기
필터 지우기

Curve fitting: Dividing spline into segments of equal length

조회 수: 5 (최근 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 CenterFile Exchange에서 Splines에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by