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: Olaf Till
Subject: [Octave-bug-tracker] [bug #31287] Certain assignments of empty arrays give errors (Matlab incompatibility)
Date: Thu, 13 Jan 2011 07:50:23 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.0.19) Gecko/2010102906 Iceweasel/3.0.6 (Debian-3.0.6-3)

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

> It would be interesting to me to see what Octave produces for
> all these test cases just for the index expression on the LHS.
> Does the dimension of that result match the dimension of the
> value on the RHS?

Octave already conforms to "rule 2.2", i.e. the dimensions of the indexed
expression on the LHS and the dimensions of the RHS do match for successful
empty assignment, with the "exception" that dimenensions being 1 can
additionally be present at non-matching positions and numbers.

But for matrices ("rule 2.1"), Matlab allows any assignment as long as
indexed LHS and RHS are both empty, but Octave does not.

    _______________________________________________________

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]