Info

This question is closed. Reopen it to edit or answer.

How to remove duplicates in a specific manner?

1 view (last 30 days)
armin farshbaf
armin farshbaf on 14 Nov 2016
Closed: MATLAB Answer Bot on 20 Aug 2021
How can i convert A=[1 1 2 2 3 3;1 1 2 2 3 3;1 1 2 2 3 3;1 1 2 2 3 3;7 7 8 8 9 9;7 7 8 8 9 9] to B=[1 2 3;1 2 3;7 8 9]? Thanks

Answers (1)

Thorsten
Thorsten on 14 Nov 2016
Edited: Thorsten on 14 Nov 2016
B = unique(unique(A, 'rows')', 'rows')'

Community Treasure Hunt

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

Start Hunting!