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:
display output from ode45 during execution

Subject: display output from ode45 during execution

From: Tomas

Date: 30 Aug, 2010 10:29:04

Message: 1 of 3

Hey.

I wonder if it is possible to display information about the time step from an ode solver during execution?

The reason is that I am trying to compute a large system of ODEĀ“s and I want to have a clue about what the ode45 is struggling with during computation time.

Regards,

Tomas

Subject: display output from ode45 during execution

From: Steven_Lord

Date: 30 Aug, 2010 13:11:28

Message: 2 of 3



"Tomas " <tomas@nicolajsen.no> wrote in message
news:i5g15g$hum$1@fred.mathworks.com...
> Hey.
>
> I wonder if it is possible to display information about the time step from
> an ode solver during execution?
>
> The reason is that I am trying to compute a large system of ODEs and I
> want to have a clue about what the ode45 is struggling with during
> computation time.

Use ODESET to set an OutputFcn that will be called periodically during the
solver's progress.

You might also want to read this Cleve's Corner article:

http://www.mathworks.com/company/newsletters/news_notes/clevescorner/may03_cleve.html

--
Steve Lord
slord@mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
To contact Technical Support use the Contact Us link on
http://www.mathworks.com

Subject: display output from ode45 during execution

From: Tomas

Date: 31 Aug, 2010 10:07:05

Message: 3 of 3

"Steven_Lord" <slord@mathworks.com> wrote in message <i5gam0$4ui$1@fred.mathworks.com>...
>
> Use ODESET to set an OutputFcn that will be called periodically during the
> solver's progress.
>
> You might also want to read this Cleve's Corner article:
>
> http://www.mathworks.com/company/newsletters/news_notes/clevescorner/may03_cleve.html
>
Thanks, that was exactly what I was looking for.

The article was also interesting.

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