Why there's opposite fit results phenomenon between the oddnomial and the evennmnial?
7 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
p=polyfit(RANKING,Total,4);
y=polyval(p,Total);
plot(y)
0 commentaires
Réponse acceptée
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
2 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Get Started with Curve Fitting Toolbox dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
