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)
댓글 수: 0
채택된 답변
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 Center 및 File Exchange에서 Get Started with Curve Fitting Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!