Borrar filtros
Borrar filtros

Polynomial fitting prob lem

1 visualización (últimos 30 días)
Tom
Tom el 28 de En. de 2013
Hello,
Would anyone have an idea how to prevent these large peaks and troughs occurring at the edges of a polynomial fit?
x = -1:0.005:1;
y = rand(size(x));
polydegree = 15;
coeffs = polyfit(x, y, polydegree);
y = polyval(coeffs,x);
plot(x,y,'k')
  1 comentario
Tom
Tom el 28 de En. de 2013
ooh, for instance - is there a way to constrain the polyfit so that the start and end points are always 0?

Iniciar sesión para comentar.

Respuesta aceptada

Jan
Jan el 28 de En. de 2013

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by