필터 지우기
필터 지우기

polynomial fit with boundary conditions

조회 수: 19 (최근 30일)
DF
DF 2012년 2월 16일
편집: Matt J 2013년 10월 15일
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?

채택된 답변

John D'Errico
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
Bjorn Gustavsson 2012년 2월 17일
Mathworks spline toolbox has tools for splines of arbitrary order. (I thought John's SLM-tool had too.)
DF
DF 2012년 2월 17일
Well, I have no idea how to add boundary conditions to a spline fit in Matlab. The SLM tool seemed exactly what I was looking for, but I would like to use 4th and 5th order splines.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Spline Postprocessing에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by