How to compare rows in a matrix?

I need to compare the rows in a single matrix to see which values are repeated. I also want to know which row number the repeated values are from. I'm basically trying to find any common value among multiple rows. Is there an efficient way to solve this, especially for huge data sets?

回答 (1 件)

KSSV
KSSV 2017 年 5 月 16 日
編集済み: KSSV 2017 年 5 月 16 日

0 投票

Read about ismemebr , intersection , unique

カテゴリ

ヘルプ センター および File ExchangeDynamic System Models についてさらに検索

質問済み:

2017 年 5 月 16 日

編集済み:

2017 年 5 月 16 日

Community Treasure Hunt

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

Start Hunting!

Translated by