From: Heather Moreland on
Is there a way to have ode15s output the time step it is at as it iterates? I have a simulation that is running for an extremely long time and it would be helpful to be able to see what time step it was on.

Thanks,
Heather
From: Steven Lord on

"Heather Moreland" <heather.moreland(a)gmail.com> wrote in message
news:hkurq0$ic8$1(a)fred.mathworks.com...
> Is there a way to have ode15s output the time step it is at as it
> iterates? I have a simulation that is running for an extremely long time
> and it would be helpful to be able to see what time step it was on.

Write an OutputFcn.

http://www.mathworks.com/access/helpdesk/help/techdoc/ref/odeset.html#f92-1016858

--
Steve Lord
slord(a)mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ