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

1 次查看(过去 30 天)
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

回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by