Hi all, I get an error message:
Matrix dimensions must agree.Error in lsqcurvefit/objective (line 279) F = F - YDATA;Error in snls (line 333) newfvec = feval(funfcn{3},xcurr,varargin{:});Error in lsqncommon (line 167) snls(funfcn,xC,lb,ub,flags.verbosity,options,defaultopt,initVals.F,initVals.J,caller, ...Error in lsqcurvefit (line 271) lsqncommon(funfcn,xCurrent,lb,ub,options,defaultopt,allDefaultOpts,caller,...Error in CurveFitting (line 135)[theta,Rsdnrm,Rsd,ExFlg,OptmInfo,Lmda,Jmat]=lsqcurvefit(@kinetics,theta0,t,c);
when I run the attached code. What could be the cause of the disagreement?
Kind Regards Dursman
Best Answer