lsqcurvefit command window exit flag suppression

조회 수: 1 (최근 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 CenterFile Exchange에서 Downloads에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by