Why there's opposite fit results phenomenon between the oddnomial and the evennmnial?

4 visualizaciones (últimos 30 días)

p=polyfit(RANKING,Total,4);
y=polyval(p,Total);
plot(y)

Respuesta aceptada

Mathieu NOE
Mathieu NOE el 24 de En. de 2025
hello
I suspect this is what you wanted to do (?)
load('Ranking.mat')
plot(RANKING,Total);grid on
hold on
order = 5; % 3 and above are fine
p=polyfit(RANKING,Total,order);
% y=polyval(p,Total);
y=polyval(p,RANKING);
plot(RANKING,y)
legend('data','fit');
hold off

Más respuestas (0)

Categorías

Más información sobre Get Started with Curve Fitting Toolbox en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by