MATLAB Answers

splines with derivative conditions at support points

조회 수: 1(최근 30일)
Maximilian Dio
Maximilian Dio 2021년 7월 6일
답변: Bruno Luong 2021년 7월 6일
Hi I am trying to cubically interpolate my data but I know the derivatives at these points too. I have only found the csape function to define the derivatives at the end points -> "clamped" however I could not find how to enforce the derivatives at the support points too.
Thanks for a response..
Regards max
  댓글 수: 2
Maximilian Dio
Maximilian Dio 2021년 7월 6일
I can enforce the conditions in this for but I would like to have somethiing a build in function - this seems to be not so nice)
for i = 1:numberOfSegments
pp{i} = csape([x(i),x(i+1)],[y(i),y(i+1)],'complete',[dy(i),dy(i+1)]);
end
or even better a 5th order spline where the 3rd derivative is also continous...

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

답변(1개)

Bruno Luong
Bruno Luong 2021년 7월 6일
There is the option point-wise constraints (pntcond) of my FEX BSFK to achieve your goal.

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by