lsqcurvefit command window exit flag suppression

2 ビュー (過去 30 日間)
Thijs
Thijs 2012 年 2 月 14 日
コメント済み: Mr M. 2016 年 5 月 29 日
lsqcurvefit dumps its exit flags in the work space. i.e
lsqcurvefit stopped because the problem appears to be locally singular.
or
Optimization completed because the size of the gradient is less than the default value of the function tolerance.
is there any way to suppress these outputs in the command window?

採用された回答

Andrew Newell
Andrew Newell 2012 年 2 月 14 日
You could include options in your call to lsqcurvefit and set Display to 'off':
opts = optimset('lsqcurvefit');
optimset(opts,'Display','off');
... = lsqcurvefit(...,opts);
  3 件のコメント
Andrew Newell
Andrew Newell 2012 年 2 月 14 日
opts=optimset('lsqcurvefit') sets a lot of options specific to lsqcurvefit. In practice, it probably doesn't make much difference.
Mr M.
Mr M. 2016 年 5 月 29 日
for me, neither version is working

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by