help-octave
[Top][All Lists]
Advanced

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

RE: ode45 for coupled system (2nd order ODE)


From: Joza
Subject: RE: ode45 for coupled system (2nd order ODE)
Date: Fri, 9 Nov 2012 09:41:37 -0800 (PST)

Here is my code anyway:

function du = f1(t, y) 
        dy = zeros(2,1); 
        dy(1) = y(2);
        dy(2) = -sin(y(1));
end

...

[t, y1] = ode45(@f1, [0, 100], [1, 0]);

This solves the system for y1. But I would like to also have dy1/dt .... how
can I obtain that with ode45?



--
View this message in context: 
http://octave.1599824.n4.nabble.com/ode45-for-coupled-system-2nd-order-ODE-tp4646324p4646344.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

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