Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
How to suppress all dialog output from fsolve?

Subject: How to suppress all dialog output from fsolve?

From: Joseph

Date: 22 Mar, 2011 18:31:04

Message: 1 of 3

Hi all,

I have a code that solves a set of equations using fsolve every time I take a timestep in a program diffusion program I have written. I currently have the fsolve part in a for-loop as part of the script while doing my diagnostic testing and every iteration it prints out the statement "Equation solved ... <stopping_criteria_details>". I have placed an ";" at the end of the statement and also the only options are to use Jacobian. Will the fsolve() always print to the command line with those details; even if it is in a function? Is there a way to suppress this, since it is taking time to write to the screen?

From,
Joe

Subject: How to suppress all dialog output from fsolve?

From: Steven_Lord

Date: 22 Mar, 2011 18:40:47

Message: 2 of 3



"Joseph " <jpantina@gmail.com> wrote in message
news:imapt8$7mf$1@fred.mathworks.com...
> Hi all,
>
> I have a code that solves a set of equations using fsolve every time I
> take a timestep in a program diffusion program I have written. I currently
> have the fsolve part in a for-loop as part of the script while doing my
> diagnostic testing and every iteration it prints out the statement
> "Equation solved ... <stopping_criteria_details>". I have placed an ";" at
> the end of the statement and also the only options are to use Jacobian.
> Will the fsolve() always print to the command line with those details;
> even if it is in a function? Is there a way to suppress this, since it is
> taking time to write to the screen?

Try using OPTIMSET to create an options structure with the Display option
set to 'off' and pass that options structure into FSOLVE.

--
Steve Lord
slord@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com

Subject: How to suppress all dialog output from fsolve?

From: Joseph

Date: 22 Mar, 2011 18:57:05

Message: 3 of 3

"Steven_Lord" <slord@mathworks.com> wrote in message <imaqe8$gs6$1@fred.mathworks.com>...
>
>
> "Joseph " <jpantina@gmail.com> wrote in message
> news:imapt8$7mf$1@fred.mathworks.com...
> > Hi all,
> >
> > I have a code that solves a set of equations using fsolve every time I
> > take a timestep in a program diffusion program I have written. I currently
> > have the fsolve part in a for-loop as part of the script while doing my
> > diagnostic testing and every iteration it prints out the statement
> > "Equation solved ... <stopping_criteria_details>". I have placed an ";" at
> > the end of the statement and also the only options are to use Jacobian.
> > Will the fsolve() always print to the command line with those details;
> > even if it is in a function? Is there a way to suppress this, since it is
> > taking time to write to the screen?
>
> Try using OPTIMSET to create an options structure with the Display option
> set to 'off' and pass that options structure into FSOLVE.
>
> --
> Steve Lord
> slord@mathworks.com
> To contact Technical Support use the Contact Us link on
> http://www.mathworks.com

Thank you.

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us