Why there's opposite fit results phenomenon between the oddnomial and the evennmnial?
2 views (last 30 days)
Show older comments
p=polyfit(RANKING,Total,4);
y=polyval(p,Total);
plot(y)
0 Comments
Accepted Answer
Mathieu NOE
on 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 Comments
More Answers (0)
See Also
Categories
Find more on Get Started with Curve Fitting Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!