[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Fwd: Re: can ode23s be used with fixed time step?
From: |
Terry Duell |
Subject: |
Fwd: Re: can ode23s be used with fixed time step? |
Date: |
Sat, 23 Feb 2013 13:43:22 +1100 |
User-agent: |
Opera Mail/12.14 (Linux) |
In my reply to Carlo, I omitted to cc the list, sorry.
------- Forwarded message -------
From: "Terry Duell" <address@hidden>
To: "c." <address@hidden>
Cc:
Subject: Re: can ode23s be used with fixed time step?
Date: Sat, 23 Feb 2013 13:28:51 +1100
Hello Carlo,
On Sat, 23 Feb 2013 13:17:31 +1100, c. <address@hidden> wrote:
On 23 Feb 2013, at 00:11, Terry Duell <address@hidden> wrote:
[snip]
It appears that 'odeset' only accepts a 'MaxStep' argument.
Is there a way of using 'ode23s' with fixed time step?
[snip]
Rather than using a fixed stepsize I'd recomend solving with adaptive
step and then interpolatang on a uniform grid, e.g.:
[snip]
that said, if you really want to, then you can change the following
lines in ode23s:
[snip]
and then set Initialtep and MaxStep to the same value to maintain a
canstant step size, e.g.
That is very helpful, thank you.
Cheers,
--
Regards,
Terry Duell