From: Etienne G. <et...@is...> - 2002-08-10 17:31:21
|
Sorry, there was a part missing from the first attached func. Try the following. Etienne On Sat, Aug 10, 2002 at 01:32:42PM +0000, Steffan Berridge wrote: # # Hi, # # I have just started using Octave, having used Matlab for a # while. In Matlab I have often used inline functions, they # are very convenient for example when passing a function as # an argument. # # For example, the following is a function returning the # square of the argument: # # fun = inline('x^2','x'); # # One can then pass this function as an argument to another # function: # # x = foo(fun,...); # # So my question is, is there an equivalent construction in # Octave? If not, what is the best way to pass functions as # arguments? # # Thanks, # Steffan -- Etienne Grossmann ------ http://www.isr.ist.utl.pt/~etienne |