Formula used to evaluate polynomial using polyval?
2 ビュー (過去 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!