Fit a spline function to a set of data points
古いコメントを表示
Hi All,
I have a set of coordinate points
x= [0,4,6,10,15,20]
y = [18,17.5,13,12,8,10]
I want to fit a spline function.
Could someone please suggest the the curve fit function that can be used?
7 件のコメント
Do you want to use spline interpolation or spline fitting ?
For spline fitting, use
for spline interpolation, use "interp1" with the interpolation method "spline":
Deepa Maheshvare
2022 年 7 月 3 日
Sam Chak
2022 年 7 月 3 日
Okay, go to this 'interp1' documentation and use the 'spline' method.
Then see the example and post your code here. We will then try to fix it if there is an error.
Deepa Maheshvare
2022 年 7 月 3 日
Deepa Maheshvare
2022 年 7 月 3 日
Deepa Maheshvare
2022 年 7 月 3 日
Deepa Maheshvare
2022 年 7 月 3 日
採用された回答
その他の回答 (1 件)
Simon Chan
2022 年 7 月 3 日
0 投票
カテゴリ
ヘルプ センター および File Exchange で Splines についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

