fsolve accuracy
12 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
John Mulvihill
am 17 Nov. 2011
Kommentiert: John Mulvihill
am 24 Apr. 2014
Hi all,
I am fairly new to matlab so excuse my ignorance as this could be an easy problem.
I am using the fsolve function and it is working fine and it outputs my three parameters that I need. However all three numbers are limited to an accuracy of four decimal places which I would like to increase to 6 or even more.
Does anyone have any advice to help me improve the accuracy? This is a snapshot of the code...
Init_Guess = [0.05 0.02 0.0000406];
options=optimset('Display','iter','MaxIter',3000,'MaxFunEvals',3000, 'TolFun', 1.0e-12, 'TolX',1.0e-12);
Coeffs = fsolve(@Solution_1,Init_Guess,options)
As you can see with the Initial guess I am trying to force the code to increase the decimal places but it doesn't seem to want to do it.
Regards
John Mulvihill
0 Kommentare
Akzeptierte Antwort
the cyclist
am 17 Nov. 2011
My guess is that you are talking about what is displayed, as opposed to what is calculated. Try typing
>> format long
to see more digits in the output of the command window.
0 Kommentare
Weitere Antworten (1)
Mahyar
am 24 Apr. 2014
I have same problem too, and tried format long but it does not have any effect of the meaningful digits of results. Am I wrong?!
Siehe auch
Kategorien
Mehr zu Surrogate Optimization finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!