NaN and Inf error when using "fit"

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) >>

2 comentarios

J.S.
J.S. el 21 de Jun. de 2018
Danke, Stephan. Ja, der Anfangspunkt wurde von MATLAB bestimmt. Um dieses Problem zu vermeiden habe ich in Zukunft vor, ihn selber zu bestimmen.
Gruesse
J.S.

Iniciar sesión para comentar.

Respuestas (1)

Jos (10584)
Jos (10584) el 21 de Jun. de 2018

0 votos

Are you really sure?
Set a breakpoint in line 47 of your function MyCode, and check the values you enter into fit ...

Categorías

Más información sobre Get Started with Curve Fitting Toolbox en Centro de ayuda y File Exchange.

Productos

Versión

R2015b

Preguntada:

el 20 de Jun. de 2018

Comentada:

el 21 de Jun. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by