polynomial fit with boundary conditions

18 Ansichten (letzte 30 Tage)
DF
DF am 16 Feb. 2012
Bearbeitet: Matt J am 15 Okt. 2013
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?

Akzeptierte Antwort

John D'Errico
John D'Errico am 16 Feb. 2012
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 Kommentare
Bjorn Gustavsson
Bjorn Gustavsson am 17 Feb. 2012
Mathworks spline toolbox has tools for splines of arbitrary order. (I thought John's SLM-tool had too.)
DF
DF am 17 Feb. 2012
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.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Spline Postprocessing finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by