Calling octave functions from oct-files
John W. Eaton
jwe at bevo.che.wisc.edu
Sun Jan 13 00:30:09 CST 2008
On 13-Jan-2008, Evan wrote:
| I am converting some part of my program from octave scripts to
| oct-files in order to improve performance. I find that I have to call
| octave functions in a for loop. And if I use "feval" to do this, it
| consumes a lot of time. The result is that the oct-file is even slower
| than the octave script. So I wonder if there is an another way to call
| octave functions. For example, can I get the pointer to the function,
| then just use (*p)(args) to call the function?
No.
Maybe you could give a complete (but short) example that shows what
you are trying to do? I don't think feval from a .oct file should be
slower than running an interpreted script.
jwe
More information about the Help-octave
mailing list