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

조회 수: 2 (최근 30일)

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

채택된 답변

Mathieu NOE
Mathieu NOE 2025년 1월 24일
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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with Curve Fitting Toolbox에 대해 자세히 알아보기

태그

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by