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?

Respuestas (1)

KSSV
KSSV el 16 de Mayo de 2017
Editada: KSSV el 16 de Mayo de 2017

0 votos

Read about ismemebr , intersection , unique

Categorías

Más información sobre Matrices and Arrays en Centro de ayuda y File Exchange.

Preguntada:

el 16 de Mayo de 2017

Editada:

el 16 de Mayo de 2017

Community Treasure Hunt

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

Start Hunting!

Translated by