How can I get rid of notes in command window while running the fsolve

Hi,
I am using fsolve for part of an optimiztion. There are lots of notes and comments in command window while running my code. How can I stop seeing those comments?
I submit the code into ComputeCanada and the output file is almost 65 GB because of these comments. I tried to write on createExitMsg, but did not work.
Thanks

 Réponse acceptée

options = optimoptions('fsolve','Display','none'); % provide this as the third input argument to the solver
doc fsolve % you could read it for more information

6 commentaires

Thanks for the comment.
This is the note I am receiving in command window:
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.
Even with using the "options ...." still having that.
Make sure that you pass the options to fsolve:
x = fsolve(fun,x0,options)
Alan Weiss
MATLAB mathematical toolbox documentation
Thanks, I restart Matlab and it's working.

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by