Fit a spline function to a set of data points
Afficher commentaires plus anciens
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 commentaires
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
le 3 Juil 2022
Sam Chak
le 3 Juil 2022
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
le 3 Juil 2022
Deepa Maheshvare
le 3 Juil 2022
Deepa Maheshvare
le 3 Juil 2022
Deepa Maheshvare
le 3 Juil 2022
Réponse acceptée
Plus de réponses (1)
Simon Chan
le 3 Juil 2022
0 votes
Catégories
En savoir plus sur Interpolation dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

