help-octave
[Top][All Lists]
Advanced

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

Re: Calling Octave functions from C


From: Geraint Paul Bevan
Subject: Re: Calling Octave functions from C
Date: Fri, 20 Aug 2004 22:39:37 +0100
User-agent: Mozilla Thunderbird 0.5 (X11/20040306)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Shayne C. Rich wrote:
| Hi, is it possible to call Octave functions from "C" programs, similar
| to Matlab mex files?
|

The Octave equivalent of Matlab's mex files are oct files. These can be
written in C++ and compiled using 'mkoctfile'. You can read about them
in the Octave manual in the "Dynamically Linked Functions" subsection of
the "Functions and Script files" chapter.

There is also a tutorial available on the wiki:
http://wiki.octave.org/wiki.pl?CodaTutorial

To call Octave functions from oct files, have a look at the 'feval'
function.

- --
Geraint Bevan
http://homepage.ntlworld.com/geraint.bevan

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iEYEARECAAYFAkEmb5kACgkQcXV3N50QmNOKpwCfXZXCCbtGTNvK5bC3rlRCdTQL
oTMAn3WQi/7BI6z6e/pxACPhRwjBkp0p
=Jj5n
-----END PGP SIGNATURE-----



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

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