help-octave
[Top][All Lists]
Advanced

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

Exporting a variable to the global workspace from a C++ function


From: John W. Eaton
Subject: Exporting a variable to the global workspace from a C++ function
Date: Tue, 11 Aug 2009 15:47:54 -0400

On 11-Aug-2009, Justin Bare wrote:

| I am writing a function in C++ that will be called from Octave (using the
| information found at
| http://octave.sourceforge.net/doxygen/html/annotated.html). I want the
| function to create a variable inside the function and export it to the
| global workspace so that it can be used as a normal variable in the global
| workspace. Is there a kind of export function in the C++/Octave interface
| to do this?
| Thanks for the help.

Look at the set_global_value function declared in variables.h.

jwe


reply via email to

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