Error while running the funcyion

14 ビュー (過去 30 日間)
Giru Mishra
Giru Mishra 2018 年 1 月 20 日
編集済み: Matt J 2018 年 1 月 20 日
While running my function, I am getting following error. PLease help me
Error using fit>iFit (line 340)
Complex value computed by model function, fitting
cannot continue.
Try using or tightening upper and lower bounds on
coefficients.
Error in fit (line 108)
[fitobj, goodness, output, convmsg] = iFit(
xdatain, ydatain, fittypeobj, ...
  4 件のコメント
Giru Mishra
Giru Mishra 2018 年 1 月 20 日
range of data is: x--> -4 to 6 y--> -5 to -2
Giru Mishra
Giru Mishra 2018 年 1 月 20 日
and data is in log.. i.e. the data to be fitted is in log

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

採用された回答

Matt J
Matt J 2018 年 1 月 20 日
編集済み: Matt J 2018 年 1 月 20 日
If c is allowed to be negative, then your model function will produce complex numbers via log10(c). Use the 'Lower' and 'Upper options to specify bounds.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Logging についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by