bugGNU Octave - Bugs: bug #60347, Wrong third output in...


bug #60347: Wrong third output in "intersect" with "stable" flag

Submitted by:  Rafael Vazquez <rafavzqz>
Submitted on:  Tue 06 Apr 2021 08:15:21 AM UTC  
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Confirmed Assigned to:  None
Originator Name:  Open/Closed:  Open
Release:  6.2.0 Operating System:  GNU/Linux

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Tue 06 Apr 2021 09:24:22 PM UTC, comment #1: 

Confirmed.  There's a bunch of conditional code in intersect.m to handle the "stable" flag so it is easy to see how something like this could creep in.

Rik <rik5>
Project Administrator
Tue 06 Apr 2021 08:15:21 AM UTC, original submission:  

The third output in "intersect" with the "stable" flag is not correct. For instance, the output of the following command

[~,~,IB] = intersect ([8 4 2 6], [1 7 2 8], 'stable')
IB =


should be

IB =


A similar issue appeared before for the "unique" function. See bug #46856

Rafael Vazquez <rafavzqz>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by rafavzqz (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.




    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-04-06 rik5 StatusNone => Confirmed

    Back to the top

    Powered by Savane 3.6