> Hi all,
> I'm looking to use Octave within an application, but I'd like to be able
> to dynamically provide variables to the running Octave interpreter:
> int result = feval("plot(my_var)",...)
> where the value of my_var should be provided to Octave "on demand"...
> through a callback or something... 😊
> Is this possible ?
> Help-octave mailing list
The best resource I know of is the "examples/code" directory in the Octave
You'll find, among others, "embedded.cc" that shows you how to use Octave
from a foreign C++ program and embed an instance of the interpreter.
* The above example works but crashes at exit. This bug has been fixed in
the development branch
* The interpreter has been refactored in depth and the way to embed Octave
4.4 (or the next major version of Octave) will be very different.