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:
ode45 with fixed time step

Subject: ode45 with fixed time step

From: Mateusz Gos

Date: 23 Sep, 2009 10:46:02

Message: 1 of 2

is there a way, as it used to be in the old versions of Matlab (until 6.5) to fix the actual time step used by the solver? (and i do not mean to get outputs at certain points, that is obviously possible, i want the solver to strictly use a given time step).

thank you in advance,
mateusz

Subject: ode45 with fixed time step

From: Steven Lord

Date: 23 Sep, 2009 13:55:23

Message: 2 of 2


"Mateusz Gos" <webmaster24@wp.pl> wrote in message
news:h9cu9a$ev4$1@fred.mathworks.com...
> is there a way, as it used to be in the old versions of Matlab (until 6.5)
> to fix the actual time step used by the solver? (and i do not mean to get
> outputs at certain points, that is obviously possible, i want the solver
> to strictly use a given time step).

I'm pretty sure it was never possible to control the actual time steps used
by ODE45. You will need to locate a fixed-step solver -- there's a document
here that links to a few.

http://www.mathworks.com/support/solutions/en/data/1-1TJ3GZ/?solution=1-1TJ3GZ

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

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