lsqcurvefit command window exit flag suppression

2 次查看(过去 30 天)
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.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Downloads 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by