how to remove repeating columns in a matrix

Hello all. I have a 1001x88 non-Zero Matrix with columns repeating at certain intervals. How do I remove These repeating columns? Is there any function such as unique(A,'rows') for removing repeating columns? Thanks in Advance

回答 (1 件)

Adam
Adam 2016 年 10 月 11 日

1 投票

Just transpose the matrix and use unique(A, 'rows' )

カテゴリ

ヘルプ センター および File ExchangeCreating and Concatenating Matrices についてさらに検索

質問済み:

2016 年 10 月 11 日

回答済み:

2016 年 10 月 11 日

Community Treasure Hunt

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

Start Hunting!

Translated by