필터 지우기
필터 지우기

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 CenterFile Exchange에서 Polynomials에 대해 자세히 알아보기

태그

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by