Octave 3.2.0: possible bug in "exist"
John W. Eaton
jwe at octave.org
Mon Jun 8 14:14:16 CDT 2009
On 7-Jun-2009, Massimiliano Culpo wrote:
| I am not sure that what I am reporting below is actually a bug, though
| the behavior changed from version 3.0.X.
|
| It seems that function handles are not considered as variables in the
| newer version of octave when the function "exist" is called:
|
| octave:1> version
| ans = 3.2.0
| octave:2> A = @(x) sin(x);
| octave:3> exist("A")
| ans = 0
|
| octave:1> version
| ans = 3.0.3
| octave:2> A = @(x) sin(x);
| octave:3> exist("A")
| ans = 1
|
| In the help of "exist" the case of a function handle is not mentioned,
| so I don't really know which one of the two is the expected behavior.
I checked in the following change.
http://hg.savannah.gnu.org/hgweb/octave/rev/1a1c839625b3
Jaroslav, this change should also be applied to the 3.2.x branch.
Thanks,
jwe
More information about the Bug-octave
mailing list