How to remove duplicates in a specific manner?

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')'

This question is closed.

Asked:

on 14 Nov 2016

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!