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

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

[Octave-bug-tracker] [bug #50977] rank(): Subscript error


From: Alexander Wilms
Subject: [Octave-bug-tracker] [bug #50977] rank(): Subscript error
Date: Tue, 9 May 2017 00:28:31 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.96 Safari/537.36

URL:
  <http://savannah.gnu.org/bugs/?50977>

                 Summary: rank(): Subscript error
                 Project: GNU Octave
            Submitted by: alexanderw
            Submitted on: Tue 09 May 2017 04:28:29 AM UTC
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.2.1
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

Script:

A = [-1 0; 5 -2]
C = [4 0]
Q = [C; C*A]
rank1 = rank(Q)


Matlab output:

A =

    -1     0
     5    -2


C =

     4     0


Q =

     4     0
    -4     0


rank1 =

     1


Octave output:

A =

  -1   0
   5  -2

C =

   4   0

Q =

   4   0
  -4   0

error: rank(-4): subscripts must be e
ither integers 1 to (2^31)-1 or logic
als
error: called from
    bug at line 4 column 7





    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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