Clear Filters
Clear Filters

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 view (last 30 days)
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

Answers (1)

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

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!