how to define a function handle in oct-files
Muthiah Annamalai
muthuspost at gmail.com
Wed Jan 9 22:49:19 CST 2008
Evan wrote:
> I want to define a function like the following in an oct-file
>
> function y=fun(f)
> g=@(x) 1./f(x);
> y=quad(g, 0, 1);
> endfunction
>
> what should I write for the sentence "g=@(x) 1./f(x);"?
> thanks in advance
>
I wonder if you need to do it that way?
Maybe all you need is to invoke quad, by
whatever semantics its got. I think it maybe a
fortran call.
-Muthu
More information about the Help-octave
mailing list