필터 지우기
필터 지우기

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
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 CenterFile Exchange에서 Get 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