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

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

[Octave-bug-tracker] [bug #45293] Inconsistent behaviour when appending


From: Rik
Subject: [Octave-bug-tracker] [bug #45293] Inconsistent behaviour when appending to empty matrices
Date: Fri, 7 Jun 2019 22:55:24 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko

Update of bug #45293 (project octave):

              Item Group:        Incorrect Result => Matlab Compatibility   
                  Status:               Confirmed => Wont Fix               
             Open/Closed:                    Open => Closed                 

    _______________________________________________________

Follow-up Comment #3:

I ran all of the sample code in Matlab and the results are identical to
Octave.  The behavior may be unexpected, but it is compatible, and so we won't
change it.

I think for Matlab compatiblity all dimensions greater than 2 are singleton
(i.e., 1).  Hence, x(:,:,end+1) refers to x(:,:,1+1) = x(:,:,2).  However, the
first two dimensions--rows and columns--can be 0 so end+1 in that case just
equals 1.

Marking as "Won't Fix" and closing report.



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?45293>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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