Given the set of points, let say (xo, yo), (x1, y1),.....,(xn, yn) how to find polynomial via spline interpolation (Cubic/quadratic)
2 次查看(过去 30 天)
显示 更早的评论
Given the set of points, let say (xo, yo), (x1, y1),.....,(xn, yn) how to find polynomial via spline interpolation (Cubic/quadratic)
1 个评论
John D'Errico
2016-3-13
编辑:John D'Errico
2016-3-13
What is your question? Is this homework? if so, then it is time to do your work.
If you need to generate a spline, then surely spline.m is the answer, or pchip.m, or perhaps have a go at spapi.m. So I'm not at all sure what is the actual question here, or at least the reason behind your question. Surely if I wanted to fit an interpolating spline, I would have started with spline.m.
回答(2 个)
Image Analyst
2016-3-13
I'm attaching my spline and polyfit demos. Adapt as needed.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/173673/image.jpeg)
As you know, with splines you get a new polynomial between every pair of points.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Splines 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!