From help-octave-request at bevo dot che dot wisc dot edu Mon Jan 25 18:44:50 1999 Subject: Passing octave function as a parameter From: "John W. Eaton" To: Eduardo Gallestey Cc: "help-octave at bevo dot che dot wisc dot edu" Date: Mon, 25 Jan 1999 18:45:18 -0600 (CST) On 26-Jan-1999, Eduardo Gallestey wrote: | I trying to adapt a C++/Fortran subroutine (related to the solution of | PDE) for use in the "octave environment". I am so far that I can pass | numerical parameters to it and get correct calculations. | | Now I would like have "octave functions" as parameters. This is | possible, because it has been done (at least!) for the routines "lsode" | and "fsolve"!. | Is there some documentation with respect to that? Can someone explain | how this should be done? If your function is written as an M-file, use feval(). If your function is written in C++, look at the code for lsode, fsolve, or dassl to see how it was done there. jwe