Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR MATLAB

find duplicates in matlab arrauy

A = [1 2 3 2 5 3]
[v, w] = unique( A, 'stable' );
duplicate_indices = setdiff( 1:numel(A), w )
 
PREVIOUS NEXT
Tagged: #find #duplicates #matlab #arrauy
ADD COMMENT
Topic
Name
9+7 =