[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: inline functions (Corrected source)
From: |
Etienne Grossmann |
Subject: |
Re: inline functions (Corrected source) |
Date: |
Sat, 10 Aug 2002 18:37:46 +0100 |
User-agent: |
Mutt/1.3.28i |
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
inline.m
Description: Text document