curve fitting: how to get the fitting curve?
2 次查看(过去 30 天)
显示 更早的评论
Hi everyone~
I did some curve fitting using curve fitting toolbox. But I don't know how to get the fitting curve. Can somebody help?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/153521/image.png)
Also, in the future I want to do this using code. I'm reading the manual for spline fitting. http://www.mathworks.com/help/curvefit/construction.html
There seems to be lots of kinds of it. I want it shape-conserve, and must pass all the points. Which one should I use?
Any help is appreciated. Thank you!
0 个评论
回答(1 个)
John D'Errico
2013-12-6
编辑:John D'Errico
2013-12-6
Use pchip to create a shape preserving spline. ppval can evaluate it.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Get Started with Curve Fitting Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!