help-octave
[Top][All Lists]
Advanced

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

Re: anonymous functions?


From: Olaf Till
Subject: Re: anonymous functions?
Date: Thu, 16 Nov 2006 16:37:21 +0100
User-agent: Mutt/1.5.9i

On Thu, Nov 16, 2006 at 04:24:29PM +0100, David Bateman wrote:
> In a recent CVS of octave (and probably back to 2.9.8)
> 
> octave:1> function y = tttf (a, b), y = a + b; endfunction
> octave:2> function ret = tttf2 (F, x), ret = feval (F, x); endfunction
> octave:3> b = 2;
> octave:4> tttf2 (@ (x) tttf (x, b), 3)
> ans =  5
> octave:5> ver
> ----------------------------------------------------------------------
> GNU Octave Version 2.9.9+
> GNU Octave License: GNU General Public License, Version 2
> Operating System: Linux 2.6.12-27mdk-i686-up-4GB #1 Tue Sep 26 12:41:29
> MDT 2006 i686
> ----------------------------------------------------------------------
> 
> So this is fixed..
> 
> D.
> 

Ok, and thank you very much for the prompt reply.

So I really will have to upgrade.

Olaf


reply via email to

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