After I got the coefficent from the command:
p1=polyfit(x,y,4);
the p1 vector is:
p1 =
-35.4628 39.9257 -14.8278 1.6022 1.1031
the x vector is:
x=[0:0.001:0.4000]
Now, how do I write like this:
I don't need the polyval command.

 채택된 답변

Paul Rogers
Paul Rogers 2020년 7월 1일

0 개 추천

formula = ((x.^4)*-35.4628) + ((x.^3)*39.9257) + ((x.^2)*-14.8278) + ((x.^1)*1.6022) + ((x.^0)*1.1031);

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Polynomials에 대해 자세히 알아보기

제품

릴리스

R2014b

질문:

2020년 6월 30일

답변:

2020년 7월 1일

Community Treasure Hunt

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

Start Hunting!

Translated by