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

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

[Octave-bug-tracker] [bug #61705] Wrong number of columns when removing


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #61705] Wrong number of columns when removing entry from empty vector
Date: Sun, 19 Dec 2021 12:57:34 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36 Edg/96.0.1054.62

Update of bug #61705 (project octave):

              Item Group:                    None => Incorrect Result       
                  Status:                    None => Confirmed              
                 Release:                   6.2.0 => dev                    
        Operating System:               GNU/Linux => Any                    

    _______________________________________________________

Follow-up Comment #1:

This is still the same with a build from the current default branch (hg id
6ffa6dbbf42a), and also occurs with 6.4.0 on Windows 10.

With Matlab R2021a:

>> vector = []

vector =

     []

>> size(vector)

ans =

     0     0

>> vector = vector(vector != 2)
 vector = vector(vector != 2)
                        ↑
Invalid use of operator.
 
Did you mean:
>> vector = vector(vector ~= 2)

vector =

     []

>> size(vector)

ans =

     0     0

>> vector = [2]

vector =

     2

>> vector = vector(vector ~= 2)

vector =

     []

>> size(vector)

ans =

     0     0



    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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