How to compare rows in a matrix?

2 次查看(过去 30 天)
Atiqah Zakirah
Atiqah Zakirah 2017-5-16
编辑: KSSV 2017-5-16
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
Read about ismemebr , intersection , unique

类别

Help CenterFile Exchange 中查找有关 Dynamic System Models 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by