help-octave
[Top][All Lists]
Advanced

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

Re: Octave interface from third-party app?


From: John Swensen
Subject: Re: Octave interface from third-party app?
Date: Wed, 1 Jun 2011 22:16:04 -0400

On Jun 1, 2011, at 5:51 PM, Parker, Joel J. K. (GSFC-5950) wrote:

> Hi all,
> 
> I'm currently working with a cross-platform C++ app that talks to Matlab 
> through its COM interface (on Windows) and its shared library interface 
> elsewhere. We use this to drive Matlab (and call Matlab functions) from 
> within our own scripting language.
> 
> I'm wondering if there's a way to call Octave in the same way. Is there a 
> "liboctave" that a third-party app can load and talk to, send commands to, 
> get results from, etc.?
> 
> Thanks,
> - Joel Parker
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://mailman.cae.wisc.edu/listinfo/help-octave

Joel,
Yes you can do this.  You can see some examples of how this is done from the 
Octave sources.  In case you just want to browse through them, you can see the 
files at the following link
http://hg.savannah.gnu.org/hgweb/octave/file/ee4775d04d7f/examples
Of particular interest, based on your problem description, is the file 
embedded.cc and standalone.cc.  Many of the other files are examples of calling 
C++ code from Octave.

Another route is to use the Octave engine package.  I am pretty sure the syntax 
of the Octave engine package is similar/identical to the Matlab engine 
interface (http://octave.sourceforge.net/engine/index.html).  I'm not sure the 
exact method you currently use to call Matlab from C++, but you have several 
options to do a similar thing from Octave.

John Swensen



reply via email to

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