From octave-maintainers-request at bevo dot che dot wisc dot edu Mon Mar 25 13:12:59 2002 Subject: Re: calling .m function from oct From: Paul Kienzle To: andyj at splash dot princeton dot edu, octave-maintainers@bevo.che.wisc.edu Date: Mon, 25 Mar 2002 14:12:54 -0500 Wrong list. Use help-octave for such questions. #include ... // 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 pkienzle at users dot sf dot net 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 > > arj at gfdl dot gov > > 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 >