필터 지우기
필터 지우기

Fitting a linear sine curve with natural spline

조회 수: 2 (최근 30일)
Abi sek
Abi sek 2018년 2월 27일
댓글: Torsten 2018년 2월 27일
I am relatively new to Matlab. The threads that I searched regarding the topic is in vain. Through core Matlab functions, kindly assist in fitting a linear sine curve(s(x)=sinx) between o and 2*pi with a natural and cubic spline. In terms of the natural spline, we can use condition: second derivatives at the two ends of the spline are set to zero. For cubic spline, we can use condition: Tangent direction of the cosine curve at the two endpoints to be the starting and ending tangent vectors.
  댓글 수: 3
Abi sek
Abi sek 2018년 2월 27일
편집: Abi sek 2018년 2월 27일
Hi Torsten, It does directly call the function spap directly.But, I need to have a detailed breakdown code which mainly encompasses the double derivatives at the two endpoints are zero in case of the natural spline.
Regards, Abhi
Torsten
Torsten 2018년 2월 27일
So you search for an approximating spline for which you worry about the end conditions ? That's unusual. I guess that you will have to write your own code to implement such a speciality.
Best wishes
Torsten.

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

답변 (0개)

카테고리

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