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: Robert Jenssen
Subject: [Octave-bug-tracker] [bug #31287] Certain assignments of empty arrays give errors (Matlab incompatibility)
Date: Sat, 15 Feb 2014 22:31:44 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.107 Safari/537.36

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

The colon operator changes the size of an empty matrix:

octave:6> T=[]
T = [](0x0)
octave:7> T=T(:)
T = [](0x1)

This causes problems like:
octave:8> U=[]
U = [](0x0)
octave:9> T+U
error: operator +: nonconformant arguments (op1 is 0x1, op2 is 0x0)



    _______________________________________________________

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]