help-octave
[Top][All Lists]
Advanced

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

Re: findobj logicaloperator


From: Ben Abbott
Subject: Re: findobj logicaloperator
Date: Sat, 04 May 2013 10:06:07 +0800

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]