フィルターのクリア

How can I fit the roots of a polynomial function?

1 回表示 (過去 30 日間)
Edoardo Vicentini
Edoardo Vicentini 2018 年 10 月 16 日
コメント済み: Edoardo Vicentini 2018 年 10 月 16 日
My data can be model as a solution (a root) of a polynomial function. I have a set of (x,y) data that can be model as y^3+(1-k*x)*y^2+2y+1=0 and I want to fit the parameter k. My (x,y) data are one of the solution of this function. How can I do it? And in case for a generic n-th degree polynomial?

回答 (1 件)

Torsten
Torsten 2018 年 10 月 16 日
Use lsqnonlin with fun = @(k)ydata.^3+(1-k(1)*xdata).*ydata.^2+2*ydata+1.
Best wishes
Torsten.
  3 件のコメント
Torsten
Torsten 2018 年 10 月 16 日
You mean that your model equation has several parameters ki to be fitted ?
Yes, you can.
Edoardo Vicentini
Edoardo Vicentini 2018 年 10 月 16 日
Yes. 3 parameter to be fitted

サインインしてコメントする。

カテゴリ

Help Center および File ExchangePolynomials についてさらに検索

タグ

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by