octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #56393] missing deval function for ode


From: Carlo de Falco
Subject: [Octave-bug-tracker] [bug #56393] missing deval function for ode
Date: Mon, 27 May 2019 05:31:07 -0400 (EDT)
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:67.0) Gecko/20100101 Firefox/67.0

Follow-up Comment #2, bug #56393 (project octave):

@JPi I don't see any incompatibility just the function deval is missing I
think the group is correct.

BTW as pointed out on the mailing list, the use of deval can
be avoided with the following code:


 y0=[1;1];
 T=40;
 t=[0:0.1:T];%%  you choose times t(k)  where solution is evaluated
 [~, y] = ode45(@(t,y) [y(2);-y(1)], t, y0);
 plot (t, y(1,:), 'xr', t, cos(t)+sin(t),'-b')


that works with both matlab and octave

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?56393>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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