help-octave
[Top][All Lists]
Advanced

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

Re: convert matlab to octave


From: Jim Maas
Subject: Re: convert matlab to octave
Date: Tue, 17 Mar 2009 13:00:41 +0000
User-agent: Thunderbird 2.0.0.19 (X11/20090105)

Thanks Ivan,

Got it, did some digging around. Found out that Octaves ode45 solver wants the differential file name specified as @filename.m where Matlab uses 'filename.m', made the change and it seems to work. Will be back with more questions I'm sure!

Thanks

Jim

Ivan Sutoris wrote:
On Tue, Mar 17, 2009 at 11:03 AM, Jim Maas <address@hidden> wrote:
Hi All,

The other day I asked if anyone had any publicly available scripts that
would demonstrate solving ode's related to michaelis-menten type kinetic
equations in biology.  I found a script for Matlab.  Is there a
converter anywhere that would convert the Matlab.m file to an octave.m
file?  I've tried running what I found and it gives errors.  Anyone game
to help a poor biologist!?  The scripts are small and once I get a
template I'm away.

Thanks

Jim

--

----
Jim Maas

Hi

Octave has almost the same syntax as Matlab [1], so usually there is
no need for conversion (so I don't think there is an automatic
conversion utility), but there may be functions which are implemented
in Matlab but not in Octave. If you need to solve ODE's, Octave has
"lsode" solver (which is not Matlab-compatible). However, there are
also Matlab-compatible solvers (ode45,...) available in separate
package from Octave-Forge [2], do you have them installed? If that
doesn't help you, you can post specific code and errors you get to
mailing list (without them, it's impossible to give better advice).

[1] http://www.gnu.org/software/octave/FAQ.html#MATLAB-compatibility
[2] http://octave.sourceforge.net/odepkg/index.html

Regards
Ivan Sutoris

______________________________________________ This email has been scanned by Netintelligence http://www.netintelligence.com/email


--

----
Jim Maas
1-b Spring Back Way
Uppingham, Rutland
LE15 9TT

Email:  jimmaas at vodafoneemail.co.uk
Blog:   http://cowtracks.co.uk/wordpress/
Home:   + 44 (0)157 282 2851
Mobile: + 44 (0)771 985 8698



reply via email to

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