removing fsolve completion message

1 view (last 30 days)
Mohammad Yunus Ali
Mohammad Yunus Ali on 5 Mar 2011
Commented: Steven Lord on 25 Feb 2023
[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

Answers (2)

Walter Roberson
Walter Roberson on 5 Mar 2011
Use the options argument to fsolve to specify an optimset that has Display turned off. See the options description

Fazlollah
Fazlollah on 25 Feb 2023
Use this for the fsolve options
options = optimset('Display','off');
  1 Comment
Steven Lord
Steven Lord on 25 Feb 2023
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.

Sign in to comment.

Tags

Community Treasure Hunt

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

Start Hunting!