help-octave
[Top][All Lists]
Advanced

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

how to define a function handle in oct-files


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


reply via email to

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