polynomial fit with boundary conditions
17 次查看(过去 30 天)
显示 更早的评论
I would like to make a polynomial fit for a vector, but imposing some boundary conditions: second derivative at the edges is zero. How can this be done?
0 个评论
采纳的回答
John D'Errico
2012-2-16
Don't!
You are describing what appears to be a spline, but will be a high order polynomial, subject to constraints. This will invariably produce crapola.
Use a spline to do the job of a spline. If you can't write that yourself, then use code from the file exchange that does it for you.
3 个评论
Bjorn Gustavsson
2012-2-17
Mathworks spline toolbox has tools for splines of arbitrary order. (I thought John's SLM-tool had too.)
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Spline Postprocessing 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!