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

7 vues (au cours des 30 derniers jours)

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

Réponse acceptée

Mathieu NOE
Mathieu NOE le 24 Jan 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

Plus de réponses (0)

Catégories

En savoir plus sur Get Started with Curve Fitting Toolbox dans Help Center et File Exchange

Tags

Produits


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by