필터 지우기
필터 지우기

How to enter a sigmoidal equation for a curve fit with lsqfitting

조회 수: 3 (최근 30일)
Wilfredo
Wilfredo 2023년 12월 9일
댓글: Wilfredo 2023년 12월 11일
he tratado de ingresar esta ecuación sigmoidal para un ajunste de curva lsqcurvefit con esta ecuación
y=1/(1+exp(4a(b-X)+2))
fun=@(x,xdata)1./(1+exp(4.*x(1).*(x(2) - xdata)+2))
x=lsqcurvefit(fun,x0,xdata,ydata)
he podido leer los datos aunque no he podido hacer los ajustes, al parecer reconoce al exponecial pero no los ajuste con X(1) y x(2).
alquien me podra ayudar con este tema
  댓글 수: 3
Matt J
Matt J 2023년 12월 10일
You haven't provided the data we would need to run the code. Most likely, though, the problem is your x0 has been chosen randomly (and therefore, poorly).
Wilfredo
Wilfredo 2023년 12월 10일
Gracias Matt J, x0= [0 5900] puede ser que aqui este el error entonces.

댓글을 달려면 로그인하십시오.

채택된 답변

Image Analyst
Image Analyst 2023년 12월 9일
See my attached demo where I fit data to the rate equation (a sigmoid type of formula).
Adapt as needed, like using a different sigmoid formula. If you have problems, write back and attach your data and m-file.
  댓글 수: 8
Wilfredo
Wilfredo 2023년 12월 11일
Hello friend, thank you very much for your help, it helps me a lot, for the values I expect are for A=0.000186865 and B=3524.
Wilfredo
Wilfredo 2023년 12월 11일
throws up the following error.
Warning: The Jacobian at the solution is ill-conditioned, and some model parameters may not be estimated well (they are not
identifiable). Use caution in making predictions.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Linearization에 대해 자세히 알아보기

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by