Fitting a linear sine curve with natural spline
2 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
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 Center および File Exchange で Spline Postprocessing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!