Effacer les filtres
Effacer les filtres

NaN and Inf error when using "fit"

4 vues (au cours des 30 derniers jours)
J.S.
J.S. le 20 Juin 2018
Commenté : J.S. le 21 Juin 2018
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 commentaires
J.S.
J.S. le 21 Juin 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.

Connectez-vous pour commenter.

Réponses (1)

Jos (10584)
Jos (10584) le 21 Juin 2018
Are you really sure?
Set a breakpoint in line 47 of your function MyCode, and check the values you enter into fit ...

Catégories

En savoir plus sur Get Started with Curve Fitting Toolbox dans Help Center et File Exchange

Produits


Version

R2015b

Community Treasure Hunt

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

Start Hunting!

Translated by