|
From: | Muthiah Annamalai |
Subject: | Re: how to define a function handle in oct-files |
Date: | Wed, 09 Jan 2008 22:49:19 -0600 |
User-agent: | Thunderbird 2.0.0.6 (X11/20071022) |
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
[Prev in Thread] | Current Thread | [Next in Thread] |