help-octave
[Top][All Lists]
Advanced

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

Re: findobj logicaloperator


From: Felipe G. Nievinski
Subject: Re: findobj logicaloperator
Date: Fri, 3 May 2013 21:22:15 -0600

Indeed, in Matlab I find:

>> findobj('-regexp','Type','image')
Warning: Regular _expression_ comparison is not supported for the 'Type' property: using ordinary
comparison. 
ans =
       471.01

>> findobj('-regexp','Type','image|surf|hggroup')
ans =
   Empty matrix: 0-by-1

I've filled bug reports with each MathWorks and Octave.

Thanks for replicating it.
-FGN.



On Fri, May 3, 2013 at 8:06 PM, Ben Abbott <address@hidden> wrote:

On May 4, 2013, at 3:34 AM, Felipe G. Nievinski wrote:

> Hi.
>
> This works as intended:
>
> figure
> imagesc(rand(10))
> oh = findobj('-regexp','Type','image|surf|hggroup')
>
> but this returns empty:
>
> oh = findobj('Type','image', '-or', 'Type','surf', '-or', 'Type','hggroup')
>
> Any thoughts why?
>
> Thanks,
> -FGN.

For Octave, I see ...

figure
imagesc(rand(10))
oh = findobj('-regexp','Type','image|surf|hggroup')
oh = -284.82

oh = findobj('Type','image', '-or', 'Type','surf', '-or', 'Type','hggroup')
oh = [](0x1)

With Matlab, I see ...

figure
imagesc(rand(10))imagesc(rand(10))
oh = findobj('-regexp','Type','image|surf|hggroup')

oh =

   Empty matrix: 0-by-1

oh = findobj('Type','image', '-or', 'Type','surf', '-or', 'Type','hggroup')

oh =

    0.0107

It appears that there are bugs in both cases.  Please file a bug report for Octave at the link below.

        https://savannah.gnu.org/bugs/?group=octave

Ben



reply via email to

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