我在MATLAB中遇到以下错误,我无法完全解释它并确定原因。我正在使用fitnlm
函数
帮助真的很感激。提前谢谢。
Error using nlinfit>checkFunVals (line 636)
The function you provided as the MODELFUN input has returned Inf or NaN values.
Error in nlinfit>LMfit (line 583)
if funValCheck && ~isfinite(sse), checkFunVals(r); end
Error in nlinfit (line 276)
[beta,J,~,cause,fullr] = LMfit(X,yw, modelw,beta,options,verbose,maxiter);
Error in NonLinearModel/fitter (line 1123)
nlinfit(X,y,F,b0,opts,wtargs{:},errormodelargs{:});
Error in classreg.regr.FitObject/doFit (line 220)
model = fitter(model);
Error in NonLinearModel.fit (line 1430)
model = doFit(model);
Error in fitnlm (line 94)
model = NonLinearModel.fit(X,varargin{:});
这个错误只是由于输入数据在模型函数的某些点上是不可微的吗?