removing fsolve completion message
1 次查看(过去 30 天)
显示 更早的评论
[EDIT: 20110513 00:14 CDT - reformat - WDR]
Using fsolve command i got a output but it has some text . I don't want to see these text like below. Pls help anybody.
*Equation solved.
fsolve completed because the vector of function values is near zero
as measured by the default value of the function tolerance, and
the problem appears regular as measured by the gradient.
Step X1_n1 X2_n1 X3_n1 X4_n1 X5_n1 X1_n X2_n X3_n X4_n X5_n H1 H2 H3 H4 H5
*Equation solved.
fsolve completed because the vector of function values is near zero
as measured by the default value of the function tolerance, and
the problem appears regular as measured by the gradient.
<stopping criteria details>* 1.00000 0.11330 0.00844 0.00070 0.00307 0.00233 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000
0 个评论
回答(2 个)
Walter Roberson
2011-3-5
Use the options argument to fsolve to specify an optimset that has Display turned off. See the options description
0 个评论
Fazlollah
2023-2-25
Use this for the fsolve options
options = optimset('Display','off');
1 个评论
Steven Lord
2023-2-25
Creating the options structure is not sufficient. optimset does not "change a global setting" or anything like that; it creates a structure that when passed into an optimization function will affect how that function call behaves.
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!