help-octave
[Top][All Lists]
Advanced

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

Re: standalone application (octave to c++): define anonymous function fo


From: mmuetzel
Subject: Re: standalone application (octave to c++): define anonymous function for nonlin_curvefit()
Date: Thu, 31 Jan 2019 13:12:27 -0600 (CST)

Sorry for the confusion. "make_fcn_handle" does something different than what
I suspected.
Doug's approach seems to work however:
    octave_value_list fh = octave::feval("str2func", ovl("@(p,x)
1-exp(p(1)*x)"), 1);
    octave_value_list result = octave::feval("nonlin_curvefit", ovl(fh(0),
init, x_val, y_val, opt(0)), 4);

Markus



--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html



reply via email to

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