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

4 vues (au cours des 30 derniers jours)
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

Réponses (1)

Stephen23
Stephen23 le 10 Août 2016
>> unique(A,'rows')
ans =
1 2
2 3
4 5
6 7

Catégories

En savoir plus sur Resizing and Reshaping Matrices dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by