[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: wrapper functions
From: |
Stefan van der Walt |
Subject: |
Re: wrapper functions |
Date: |
Tue, 28 Mar 2006 02:38:47 +0200 |
User-agent: |
Mutt/1.5.9i |
On Mon, Mar 27, 2006 at 11:52:08PM +0000, Corbin Champion wrote:
>
> I see the function builtin achieves this when from a function.m I want to
> call the builtin function called 'function'. I haven't figured out the a)
> example yet though. Any help with that would be great.
I have a directory f1 and f2, both containing a function named "f". I
can then do
octave:1> source "f1/f.m"
octave:2> f
1
octave:3> f1 = @f
f1 =
f
octave:4> source "f2/f.m"
octave:5> feval(f1)
1
octave:6> f
2
Regards
Stéfan
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------