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

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

[Octave-bug-tracker] [bug #59708] insersect() with options 'rows' and 'l


From: Sébastien Villemot
Subject: [Octave-bug-tracker] [bug #59708] insersect() with options 'rows' and 'legacy' returns result with wrong orientation
Date: Thu, 17 Dec 2020 09:58:02 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0

URL:
  <https://savannah.gnu.org/bugs/?59708>

                 Summary: insersect() with options 'rows' and 'legacy' returns
result with wrong orientation
                 Project: GNU Octave
            Submitted by: svillemot
            Submitted on: jeu. 17 déc. 2020 14:58:00 UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: 6.1.0
         Discussion Lock: Any
        Operating System: GNU/Linux

    _______________________________________________________

Details:

Consider the following example run in Octave 6.1.0:

> A = [ 1 2; 3 4; 5 6; 7 8 ];
> B = [ 3 4; 7 8; 9 10 ];
> intersect(A, B, 'rows', 'legacy')
ans =

   3   7
   4   8


The same example run in MATLAB gives:

ans =

     3     4
     7     8


In other words, the result obtained in Octave is the transpose of the result
obtained in MATLAB.





    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message posté via Savannah
  https://savannah.gnu.org/




reply via email to

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