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

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

[Octave-bug-tracker] [bug #44425] intersect results are in different sha


From: Rik
Subject: [Octave-bug-tracker] [bug #44425] intersect results are in different shape than in Matlab
Date: Wed, 04 Mar 2015 17:33:17 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:36.0) Gecko/20100101 Firefox/36.0

Follow-up Comment #2, bug #44425 (project octave):

Checking the m-file for intersect, I see that Octave specifically was
implementing Matlab compatibility on the return size.


    ## Adjust output orientation for Matlab compatibility
    if (! by_rows && ! iscol)
      c = c.';
    endif


So we had to work hard to guarantee a row vector to match the documentation. 
Could you find out when Matlab changed their behavior by looking in their
Release Notes?  If this is a recent change Octave may need move slowly to
avoid breaking existing code.  If this happened a long time ago then maybe we
can just invert the behavior from rows to columns before the 4.0 release.


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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