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년 전 | 9