Why there's opposite fit results phenomenon between the oddnomial and the evennmnial?
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Zhssss
el 24 de En. de 2025
Comentada: Mathieu NOE
el 31 de En. de 2025
p=polyfit(RANKING,Total,4);
y=polyval(p,Total);
plot(y)
0 comentarios
Respuesta aceptada
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
2 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Get Started with Curve Fitting Toolbox 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!
