|
From: | Felipe G. Nievinski |
Subject: | Re: findobj logicaloperator |
Date: | Fri, 3 May 2013 21:22:15 -0600 |
For Octave, I see ...
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.
oh = -284.82
figure
imagesc(rand(10))
oh = findobj('-regexp','Type','image|surf|hggroup')
oh = [](0x1)
oh = findobj('Type','image', '-or', 'Type','surf', '-or', 'Type','hggroup')
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 =
oh = findobj('Type','image', '-or', 'Type','surf', '-or', 'Type','hggroup')
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
[Prev in Thread] | Current Thread | [Next in Thread] |