[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Translating ODE from Matlab to Octave
From: |
Bård Skaflestad |
Subject: |
Re: Translating ODE from Matlab to Octave |
Date: |
Tue, 26 Nov 2013 17:18:51 +0100 |
On Tue, 2013-11-26 at 17:05 +0100, c. wrote:
> On 26 Nov 2013, at 16:54, Bård Skaflestad <address@hidden> wrote:
>
> > Alternatively, you *could* use
> >
> > [y, t] = lsode(@(y, t) f(t, y), y0, t)
> >
> > if you don't want to change the definition of 'f'.
>
> no, you can't call 'lsode' like that.
>
> 'lsode' does not return the time vector 't',
Thanks a lot for alerting me to that fact. Now I just have to ask
myself why I didn't derive that conclusion from the documentation...
> the calling sequence is different from ode15s. the set of times at
> which you want your solution evaluate should be passed as an input
> parameter.
Are you saying that LSODE does not support automatic step size selection
or does the solver "simply" not expose the selected time steps to the
caller?
Sincerely,
--
Bård Skaflestad <address@hidden>
SINTEF ICT, Applied mathematics