|
From: | Evan |
Subject: | how to define a function handle in oct-files |
Date: | Thu, 10 Jan 2008 21:24:51 +0800 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |