Re: [Scilab-users] Get duplicates of a vector

2019-09-23 Thread Hani Andreas Ibrahim
ab.org Betreff: Re: [Scilab-users] Get duplicates of a vector Hi, B=unique(A)(members(unique(A), A)==2); Regards, Roland -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html ___ users mailing list users@lis

Re: [Scilab-users] Get duplicates of a vector

2019-09-23 Thread RolandB
Hi, B=unique(A)(members(unique(A), A)==2); Regards, Roland -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users

[Scilab-users] Get duplicates of a vector

2019-09-23 Thread Hani Andreas Ibrahim
Hello,   I want to get the duplicates of a vector. Lets say I have a vector as follows:   A = [ 1 5 3 2 3 1 ];   I want to get a vector which contains the duplicates [1 3].   I found intersect, union and unique but they give me just the vector w/o the duplicates. In this example unique(A)=>