[Top][All Lists]

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

Translating ODE from Matlab to Octave

From: RICHARD Dominique
Subject: Translating ODE from Matlab to Octave
Date: Tue, 26 Nov 2013 15:19:35 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131103 Icedove/17.0.10

Hello everybody,
  I am switching from Matlab to Octave and I got some code that I am not sure how to deal with.
For example these lines:

options = odeset('Mass',M);
f = @(t,y) daesystem(t,y,params); 
[t,y] = ode15s(f,t,y0,options);

which I transformed to :

lsode_options ('Mass',M);

f = @(t,y) daesystem(t,y,params);

[y, t]= lsode(@(y,t) f, y0, t)

which does not seem to run properly.

I had a look at the Octave notice but besides the definitions, I did not found clear enough examples for me to use.
I would be very grateful for any help to get me to the free side of software.

Dominique RICHARD
Laboratoire de Génie des Procédés Catalytiques - CNRS-CPE Lyon
3, rue Victor Grignard F-69616 Villeurbanne cedex 
Tél. (33) 4 72 43 17 52 - Fax (33) 4 72 43 16 73

reply via email to

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