finding repeated values of two columns data?

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

 采纳的回答

No loops needed:
[Rows,~,c]= unique(ex,'rows');
Counts = accumarray(c,1);
Wanted = [table(Rows),table(Counts)]

更多回答(1 个)

类别

在 帮助中心 和 File Exchange 中查找有关 Loops and Conditional Statements 的更多信息

产品

版本

R2016a

标签

Community Treasure Hunt

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

Start Hunting!

Translated by