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

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

[Octave-bug-tracker] [bug #31287] Certain assignments of empty arrays gi


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #31287] Certain assignments of empty arrays give errors (Matlab incompatibility)
Date: Sat, 12 Oct 2013 05:15:07 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130810 Firefox/17.0 Iceweasel/17.0.8

Follow-up Comment #16, bug #31287 (project octave):

I checked in the following change to fix the null assignment cases.

http://hg.savannah.gnu.org/hgweb/octave/rev/7ed397c8ca68

Note that my change accepts both [] and false equivalently to select 0
elements.  Matlab seems inconsistent here, for example, accepting
x(false,false)=[] if x is 2d but not x(false,false,false)=[] if x is 3d.  I
opted for what seems like better consistency to me.



    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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