フィルターのクリア

NaN and Inf error when using "fit"

4 ビュー (過去 30 日間)
J.S.
J.S. 2018 年 6 月 20 日
コメント済み: J.S. 2018 年 6 月 21 日
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 件のコメント
Stephan
Stephan 2018 年 6 月 21 日
J.S.
J.S. 2018 年 6 月 21 日
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.

サインインしてコメントする。

回答 (1 件)

Jos (10584)
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 ...

カテゴリ

Help Center および File ExchangeGet Started with Curve Fitting Toolbox についてさらに検索

製品


リリース

R2015b

Community Treasure Hunt

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

Start Hunting!

Translated by