Fit a spline function to a set of data points
Mostrar comentarios más antiguos
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 comentarios
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
el 3 de Jul. de 2022
Sam Chak
el 3 de Jul. de 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
el 3 de Jul. de 2022
Deepa Maheshvare
el 3 de Jul. de 2022
Deepa Maheshvare
el 3 de Jul. de 2022
Deepa Maheshvare
el 3 de Jul. de 2022
Respuesta aceptada
Más respuestas (1)
Simon Chan
el 3 de Jul. de 2022
0 votos
Categorías
Más información sobre Splines en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

