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

답변 (1개)

Thorsten
Thorsten 2016년 11월 14일
편집: Thorsten 2016년 11월 14일

0 개 추천

B = unique(unique(A, 'rows')', 'rows')'

댓글 수: 1

Thanks I appreciate the help

이 질문은 마감되었습니다.

질문:

2016년 11월 14일

마감:

2021년 8월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by