finding repeated values of two columns data?
조회 수: 10 (최근 30일)
이전 댓글 표시
Finding the repeated values
ex: 1 3
2 4
1 5
1 3
3 1
4 5
6 8
7 0
1 3
4 5
in the above 1 3 repeated 3 times and 4 5 repeated twice
my question how to find repeated values of two column values in matlab any body please suggest me
댓글 수: 0
채택된 답변
madhan ravi
2020년 5월 30일
No loops needed:
[Rows,~,c]= unique(ex,'rows');
Counts = accumarray(c,1);
Wanted = [table(Rows),table(Counts)]
댓글 수: 0
추가 답변 (1개)
Sai Sri Pathuri
2020년 5월 30일
This answer may help
However, they checked only for one row, you may use a loop to check for all rows
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!