Feeds
已回答
Finding the indices of duplicate values in one array
A = [1 2 3 2 5 3] [v, w] = unique( A, 'stable' ); duplicate_indices = setdiff( 1:numel(A), w ) this should work too, and is e...
Finding the indices of duplicate values in one array
A = [1 2 3 2 5 3] [v, w] = unique( A, 'stable' ); duplicate_indices = setdiff( 1:numel(A), w ) this should work too, and is e...
5 years 前 | 9