[Top][All Lists]

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

[Octave-bug-tracker] [bug #35162] randperm 2-arg incompatibility

From: Jesse Rosenstock
Subject: [Octave-bug-tracker] [bug #35162] randperm 2-arg incompatibility
Date: Fri, 23 Dec 2011 15:58:34 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_5_8) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.121 Safari/535.2


                 Summary: randperm 2-arg incompatibility
                 Project: GNU Octave
            Submitted by: jmrosenstock
            Submitted on: Fri 23 Dec 2011 03:58:32 PM GMT
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: Jesse Rosenstock
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.4.3
        Operating System: Mac OS



The matlab documentation says that randperm(n, k) returns a row vector of k
unique integers from 1:n.

The octave version returns a k-by-n matrix.

octave:62> randperm(3, 2)
ans =

   3   1   2
   1   3   2


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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