A question about fsolve

조회 수: 2 (최근 30일)
Mahsa Babaee
Mahsa Babaee 2021년 5월 16일
댓글: Mahsa Babaee 2021년 5월 17일
Hello,
Could any one please explain me what does
optimoptions('fsolve','Display','off')
mean in the latter code? and why it should be mentioned?
s = fsolve(@(s) solvef(s,n,m),s0,optimoptions('fsolve','Display','off'));
Thanks a lot for your attentions.

채택된 답변

Walter Roberson
Walter Roberson 2021년 5월 16일
fsolve() normally gives a summary after it runs, talking about the reason it stopped running (even in the case that everything worked perfectly.) That can be a distraction from what the rest of the program is trying to accomplish, so it is not uncommon to want to get rid of the termination message.
  댓글 수: 1
Mahsa Babaee
Mahsa Babaee 2021년 5월 17일
Thanks for your valuable explanations dera Wlater Roberson.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by