help-octave
[Top][All Lists]
Advanced

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

C++ evaluate function... or something


From: John W. Eaton
Subject: C++ evaluate function... or something
Date: Tue, 8 Jul 2003 21:47:19 -0500

On  8-Jul-2003, E2 <address@hidden> wrote:

| Hey, I'm in the process of writing an .oct file, and I can't figure
| out how to call functions as I would with input to octave's shell.  
| I have .m files with functions that I need to call and get return
| values from, all while inside my .oct function.  So I'm looking
| for something that probably takes in a formatted string (containing
| regular octave-ese), evaluates it, and gives the return value.
| Does this function exists?

The file parse.h declares the following function:

  extern octave_value_list
  feval (const std::string& name,
         const octave_value_list& args = octave_value_list (),
         int nargout = 0);

jwe



-------------------------------------------------------------
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]