Dear all, I want to remove duplicated array in a matrix. let say we have A=[1 2;2 3;2 3;4 5;6 7] and the answer is B=[1 2;2 3;4 5;6 7].how can I do it? I have no idea.thanks

3 Ansichten (letzte 30 Tage)
Dear all, I want to remove duplicated array in a matrix. let say we have A=[1 2;2 3;2 3;4 5;6 7] and the answer is B=[1 2;2 3;4 5;6 7].how can I do it? I have no idea.thanks

Antworten (1)

Stephen23
Stephen23 am 10 Aug. 2016
>> unique(A,'rows')
ans =
1 2
2 3
4 5
6 7

Kategorien

Mehr zu Resizing and Reshaping Matrices finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by