我有一个根据行排序的矩阵。例如,矩阵可能如下
M=[
0 3
1 1
1 2
1 2
1 2
1 2
1 3
1 3
2 0
2 2
2 2
2 3
3 2
3 3
3 3
];
我想在上面的矩阵中找到每个重复行的计数
[0 3] count is 1
[1 1] count is 1
[1 2] count is 4
[1 3] count is 2
[2 0] count is 1
[2 2] count is 2
[2 3] count is 1
[3 2] count is 1
[3 3] count is 2