필터 지우기
필터 지우기

nonlinear data fitting for a system of ODE using lsqcurvefit (finding unknown parameters)

조회 수: 1 (최근 30일)
I have a set of experimental data in staedy state condtion(without time dependent). This experiment has been done at 4 different concentration including 3 compounds. the values of concentration at inlet(x=0) and outlet(x=1) are known. i used ODE15s to solve the differenial equations and find the values at outlet and then compare them with real values to find the unknown kinitic parameters(i followed https://www.mathworks.com/matlabcentral/answers/43439-monod-kinetics-and-curve-fitting#comment_89455). but when i ran the code i got some error as below: Not enough input arguments.
Error in Untitled10>objfun (line 25)
[tSol,YSol]=ode15s(@diffeq,x,Z);
Error in lsqcurvefit (line 202)
initVals.F = feval(funfcn_x_xdata{3},xCurrent,XDATA,varargin{:});
Error in Untitled10 (line 20)
[kfit,Rsdnrm,Rsd,ExFlg,OptmInfo,Lmda,Jmat]=lsqcurvefit(@objfun,K,Cin,yy)
Caused by:
Failure in initial objective function evaluation. LSQCURVEFIT cannot continue.
  댓글 수: 3
Star Strider
Star Strider 2018년 11월 2일
@Mojtaba Malayeri — Please post the image you included with your previous (now deleted) Question.
It is essential to understanding what you want to do.
Moji
Moji 2018년 11월 3일
@Star Strider that image was my experimental data, it is included in my code now.

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

채택된 답변

Matt J
Matt J 2018년 11월 2일
편집: Matt J 2018년 11월 2일
[kfit,Rsdnrm,Rsd,ExFlg,OptmInfo,Lmda,Jmat]=lsqcurvefit(@(K) objfun(K,Y0,x),K,Cin,yy)
  댓글 수: 23
Matt J
Matt J 2018년 11월 3일
No. The link I gave you gives advice applicable to all solvers.
Moji
Moji 2018년 11월 3일
편집: Moji 2018년 11월 3일
Thanks for the suggestion. i implimened all case of options, but the issue still persists. very large erorr.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Solver Outputs and Iterative Display에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by