curve fitting toolbox error

조회 수: 1 (최근 30일)
Jernej
Jernej 2014년 6월 2일
편집: Matt J 2014년 6월 2일
I am trying to fit data to this equation b*(coth(x/a)-a/x) using the curve fitting toolbox. I get this error NaN computed by model function, fitting cannot continue. Try using or tightening upper and lower bounds on coefficients. Here is the screenshot: https://www.dropbox.com/s/2bgx89frrx2pjbo/b_h.jpg

채택된 답변

Matt J
Matt J 2014년 6월 2일
편집: Matt J 2014년 6월 2일
You must prevent the search from including a=0. Otherwise, you will have division by 0 operations x/a.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Text Analytics Toolbox에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by