Borrar filtros
Borrar filtros

Given the set of points, let say (xo, yo), (x1, y1),.....,(xn, yn) how to find polynomial via spline interpolation (Cubic/quadratic)

2 visualizaciones (últimos 30 días)
Given the set of points, let say (xo, yo), (x1, y1),.....,(xn, yn) how to find polynomial via spline interpolation (Cubic/quadratic)
  1 comentario
John D'Errico
John D'Errico el 13 de Mzo. de 2016
Editada: John D'Errico el 13 de Mzo. de 2016
What is your question? Is this homework? if so, then it is time to do your work.
If you need to generate a spline, then surely spline.m is the answer, or pchip.m, or perhaps have a go at spapi.m. So I'm not at all sure what is the actual question here, or at least the reason behind your question. Surely if I wanted to fit an interpolating spline, I would have started with spline.m.

Iniciar sesión para comentar.

Respuestas (2)

Image Analyst
Image Analyst el 13 de Mzo. de 2016
I'm attaching my spline and polyfit demos. Adapt as needed.
As you know, with splines you get a new polynomial between every pair of points.

Muhammad Usman Saleem
Muhammad Usman Saleem el 13 de Mzo. de 2016

Categorías

Más información sobre Splines en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by