polynomial fit with boundary conditions
조회 수: 18 (최근 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!