polynomial fit with boundary conditions

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?

 Réponse acceptée

John D'Errico
John D'Errico le 16 Fév 2012

0 votes

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 commentaires

DF
DF le 17 Fév 2012
That's a very nice package, however I would like to use higher order polynomials (higher than 3) and from what I've seen is not possible with SLM tools.
Bjorn Gustavsson
Bjorn Gustavsson le 17 Fév 2012
Mathworks spline toolbox has tools for splines of arbitrary order. (I thought John's SLM-tool had too.)
DF
DF le 17 Fév 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.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Polynomials dans Centre d'aide et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by