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

Respuestas (1)

Thorsten
Thorsten el 14 de Nov. de 2016
Editada: Thorsten el 14 de Nov. de 2016
B = unique(unique(A, 'rows')', 'rows')'

La pregunta está cerrada.

Preguntada:

el 14 de Nov. de 2016

Cerrada:

el 20 de Ag. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by