help-octave
[Top][All Lists]
Advanced

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

Re: findobj.m


From: David Bateman
Subject: Re: findobj.m
Date: Sun, 30 Sep 2007 21:20:30 +0200
User-agent: Thunderbird 1.5.0.7 (X11/20060921)

John W. Eaton wrote:
> On 30-Sep-2007, David Bateman wrote:
> 
> | Ben Abbott wrote:
> | > David, I corrected an embarrassing oversight/error in the script that 
> impacts the "-regexp" functionality.  It appears to be working now, can you, 
> or anyone for that matter, verify? 
> | > 
> | > 
> | > On Thursday, September 27, 2007, at 08:37AM, "David Bateman" 
> <address@hidden> wrote:
> | >> I believe the attached version addresses the issues I mentioned with the
> | >> previous version of findobj.m. John do you want it?
> | >>
> | >> D.
> | >>
> | >> ------------------------------------------------------------------------
> | >>
> | >> _______________________________________________
> | >> Help-octave mailing list
> | >> address@hidden
> | >> https://www.cae.wisc.edu/mailman/listinfo/help-octave
> | 
> | Ok, I see the following
> | 
> | octave:1> plot(1:10)
> | octave:2> findobj('-regexp','type')
> | error: invalid vector index = 3
> | error: evaluating assignment expression near line 115, column 14
> | error: evaluating if command near line 110, column 7
> | error: evaluating if command near line 109, column 5
> | error: evaluating while command near line 105, column 3
> | error: called from `findobj' in file `/home/adb014/findobj.m'
> | 
> | Where I would expect a more informative error message. I fixed this in
> | the attached version. I then tried
> | 
> | octave:1> plot (1:10)
> | octave:2> findobj('-regexp','type','figure')
> | ans =
> | 
> |    0
> |    1
> | 
> | Which is the "root figure" and the "figure" itself, so it appears to
> | work. In any case I attach here the code as a patch against the CVS with
> | a changelog entry. John do you want this?
> 
> Yes, please check it in.
> 
> Thanks,
> 
> jwe


Done

D.



reply via email to

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