NaN and Inf error when using "fit"
3 次查看(过去 30 天)
显示 更早的评论
Does anyone know why this error occurs when "fit" is called? My data contain no NaN or Inf.
Warning: NaN, Inf, or complex value detected in startpoint; choosing random starting point instead. > In curvefit.attention.Warning/throw (line 30) In fit>iFit (line 299) In fit (line 108) In MyCode (line 47) >>
回答(1 个)
Jos (10584)
2018-6-21
Are you really sure?
Set a breakpoint in line 47 of your function MyCode, and check the values you enter into fit ...
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Get Started with Curve Fitting Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!