help-octave
[Top][All Lists]
Advanced

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

Re: Can't get a differential function to work


From: Nir Krakauer
Subject: Re: Can't get a differential function to work
Date: Thu, 23 Oct 2014 16:01:19 -0400

function ydot = f(y,t); a=0.004; b=0.00002; ydot=[-y(1).*y(2)*b; y(1).*y(2)*b-y(2)*a]; endfunction; y=lsode(@f,[10,990],0:1:10);

works great for me.

reply via email to

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