How to compare rows in a matrix?

4 views (last 30 days)
Atiqah Zakirah
Atiqah Zakirah on 16 May 2017
Edited: KSSV on 16 May 2017
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?

Answers (1)

KSSV
KSSV on 16 May 2017
Edited: KSSV on 16 May 2017
Read about ismemebr , intersection , unique

Categories

Find more on Creating and Concatenating Matrices in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!