How to compare rows in a matrix?

조회 수: 4 (최근 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에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by