A question about fsolve

2 Ansichten (letzte 30 Tage)
Mahsa Babaee
Mahsa Babaee am 16 Mai 2021
Kommentiert: Mahsa Babaee am 17 Mai 2021
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.

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 16 Mai 2021
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 Kommentar
Mahsa Babaee
Mahsa Babaee am 17 Mai 2021
Thanks for your valuable explanations dera Wlater Roberson.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu MATLAB finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by