help-octave
[Top][All Lists]
Advanced

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

Re: calling octave from C


From: Jaroslav Hajek
Subject: Re: calling octave from C
Date: Wed, 18 Nov 2009 17:42:45 +0100



On Wed, Nov 18, 2009 at 11:06 AM, Philipp Leser <address@hidden> wrote:

Hey;

I try to get the following done:

- I have a very large C program, which extracts data from an Oracle data base

- I want to pass some of the data to octave

- use my own octave function on that data

-pass it back to my C routine….

 

I tried to use google and the octave manual. I don’t think that mex files or oct files are the right tools to do that ( I want to call Octave from within a c-file). I have found quite a body of information how MATLAB handles these tasks (http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_external/f15075.html)

 

Can this be done in Octave too? Are there any counterparts in octave to the matlab engPutvariable, engEvalstring and similar functions?

Any hints/links how to handle the problem would be welcome.

Thank you  very much in advance

regards


Octave can be embedded in C++ applications relatively easily. A basic example is in the manual under "Dynamically Linked Functions/Standalone Programs".
Native embedding interfaces are also available, for instance for Python:
https://launchpad.net/pytave/

another option is to simply launch Octave as an external process and communicate through pipes.
--
RNDr. Jaroslav Hajek
computing expert & GNU Octave developer
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz

reply via email to

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