Formula used to evaluate polynomial using polyval?
조회 수: 3 (최근 30일)
이전 댓글 표시
Hey,
I am using polyfit function ([p,S,mu] = polyfit(x,y,n)) to fit nth order polynomial to my data. I want to evalulate that polynomial using polyval function ([y,delta] = polyval(p,x,S,mu)). I would like to know the formulae with which polyval evaluates the function on the back ground.
Thanking You.
Best,
Aarush Sood
댓글 수: 0
답변 (1개)
John D'Errico
2020년 4월 9일
The formula? It is a polynomial. There is no complicated formula.
But if you want to know how many of the tools in MATLAB work, just look at them. Do NOT use edit.
type polyval
You will see the exact formula.
댓글 수: 2
Steven Lord
2020년 4월 10일
See the third part of the Description section on the documentation page for the polyfit function or the description of the mu output argument on that page.
참고 항목
카테고리
Help Center 및 File Exchange에서 Polynomials에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!