octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #53603] 'find' incompatible with ML


From: Rik
Subject: [Octave-bug-tracker] [bug #53603] 'find' incompatible with ML
Date: Tue, 10 Apr 2018 11:51:01 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0

Follow-up Comment #2, bug #53603 (project octave):

Breaking this in to steps to try and isolate the issue, it is clearly find
which is the problem.  Note that indexing does return a 3-D array.

Octave-4.2.1


>> x = ones (2,2,2);
>> y = x(1,2,:)
y =

ans(:,:,1) =  1
ans(:,:,2) =  1

>> find (y > 0)
ans =

   1
   2

>>


Octave-4.3.90


octave:2> x = ones (2,2,2);
octave:3> y = x(1,2,:)
y =

ans(:,:,1) =  1
ans(:,:,2) =  1

octave:4> find (y > 0)
ans =

ans(:,:,1) =  1
ans(:,:,2) =  2




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?53603>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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