help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Translating ODE from Matlab to Octave


From: c.
Subject: Re: Translating ODE from Matlab to Octave
Date: Tue, 26 Nov 2013 17:05:49 +0100

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', 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.

c.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]