octave-maintainers
[Top][All Lists]
Advanced

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

Re: octave presentation, part 2


From: John W. Eaton
Subject: Re: octave presentation, part 2
Date: Wed, 19 Nov 2008 10:05:47 -0500

On 19-Nov-2008, David Bateman wrote:

| "Nested Functions" aren't included in Octave at all. The variable 
| scoping rules in Matlab for nested functions is different than 
| sub-functions. Note however that Octave had sub-functions before matlab did.

I think Matlab had subfunctions first.

But Octave has always had the ability to define real functions on
the command line using the function keyword, not just one-line
anonymous functions with the "@(x) EXPRESSION" syntax (added not that
long ago in Matlab and then in Octave), and it has also always been
possible to put more than one function in a script file, unlike Matlab
which does not allow functions to be defined in script files at all.

jwe



reply via email to

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