[Top][All Lists]

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

Passing octave function as a parameter

From: John W. Eaton
Subject: Passing octave function as a parameter
Date: Mon, 25 Jan 1999 18:45:18 -0600 (CST)

On 26-Jan-1999, Eduardo Gallestey <address@hidden> 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.


reply via email to

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