how to delete same cols from a matrix

for example, a=[4 5 6 5 6 4; 4 6 5 3 5 4; 4 7 2 8 2 4; 4 2 4 7 4 4; 4 3 9 1 9 4;] is.
so, row=1 & 5 and row =2 & 4 is same.
what i want is to delete same row. but each ones must remain.

回答 (1 件)

KSSV
KSSV 2017 年 3 月 3 日

0 投票

doc unique
b = unique(a', 'rows')'

この質問は閉じられています。

質問済み:

2017 年 3 月 3 日

閉鎖済み:

2021 年 8 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by