How to get fsolve return number of iterations
24 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi all,
Yet another fsolve question. I am trying to compare now various root finding functions I have as well as fsolve.
In the help file it shows this;
[x,fval,exitflag,output] = fsolve(fun,x0,options)
and this
output.funcCount
so I would like to have this;
[root,output] = fsolve(myfun,x0,options);
count = output.iterations
i receive this;
Struct contents reference from a non-struct array object.
Error in zerotest (line 57)
output.iterations
What I am missing?
Thanks a lot.
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!