Monday, October 11, 2010

Octave/Matlab export

OctaveExportTool adds a menu item in the File menu for exporting Matlab or Octave ODE functions along with a few other functions, such as setParameters for any sort of optimization routines.


Rafael said...

How do I execute the script exported?
I don't know what to pass as the "u" parameter to the ODE function in the following generated function:

function DYDT = ODE(u, time)

Rafael said...

Sorry. Solved using just a couple of neurons and 3 minutes thinking.

just type a command like

x=lsode("ODE", getVars(), (t=linspace(0,100,100));