[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: calling .m function from oct
From: |
Paul Kienzle |
Subject: |
Re: calling .m function from oct |
Date: |
Mon, 25 Mar 2002 14:12:54 -0500 |
Wrong list. Use help-octave for such questions.
#include <octave/parse.h>
...
// find the minimum of the columns of matrix m.
octave_value_list fargs,fret;
fargs(0) = m;
fret = feval("min", fargs, 2);
ColumnVector min(fret(0).vector_value());
ColumnVector minidx(fret(0).vector_value());
...
Paul Kienzle
address@hidden
On Mon, Mar 25, 2002 at 11:39:31AM -0500, Andy Jacobson wrote:
> Howdy Folks,
>
> I've got some C++ code for optimization that used to compile
> into an oct file under Octave 2.0.16, but won't compile under
> Octave 2.1.x. The issue is that I want to call a
> user-specified M-file from within the C++ function.
>
> I used to declare a "tree_fvc" object which was initialized
> via a call to is_valid_function(), and then evaluated with a
> call to tree_fvc::eval().
>
> So, could someone please tell me what the new and correct way
> to do this might be? I notice that the octave_function class
> doesn't appear to have an eval() method.
>
> Thanks in advance and standard apologies if this is the wrong
> list for such a question,
>
> Andy
> --
> Andy Jacobson
>
> address@hidden
>
> Program in Atmospheric and Oceanic Sciences
> Sayre Hall, Forrestal Campus
> Princeton University
> PO Box CN710 Princeton, NJ 08544-0710 USA
>
> Tel: 609/258-5260 Fax: 609/258-2850
>