Info

此问题已关闭。 请重新打开它进行编辑或回答。

How to remove duplicates in a specific manner?

1 次查看(过去 30 天)
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
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!

Translated by