Spline Interpolation for Motion Profile

조회 수: 3 (최근 30일)
Ryan Ferrell
Ryan Ferrell 2022년 3월 31일
댓글: Ryan Ferrell 2022년 3월 31일
I am trying to create a spline interpoation for a motion profile. I have measured points of the spline based off of a provided CAD model. How would I go about getting MATLAB to provide me with an equation for the spline.
The points are shown below if that helps:
0 0
7.288 .379
13.578 3.982
16.114 10.765
16.241 16.241

답변 (1개)

John D'Errico
John D'Errico 2022년 3월 31일
편집: John D'Errico 2022년 3월 31일
You can't get an "equation" for a spline. Well, you can, IF you understand splines in some depth, but it is a bit of a piecewise mess no matter what you would do. So it is actually many equations, all in little pieces. There is no simple thing you can easily write down.
However, you can use tools to evaluate the spline at any point. That part is easy. (fnval or ppval) So why do you think you need an equation?
  댓글 수: 1
Ryan Ferrell
Ryan Ferrell 2022년 3월 31일
I need an equation to put into a motor controller software. It needs to follow a specific path which is a spline. Multiple equations could work but one would be better if possible

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Spline Postprocessing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by