A question about fsolve

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