This is my data:
3 3 2
2 4 1
4 1 2
7 5 2
3 4 1
2 6 2
1 5 1
I want somehow to return me that there is 3 duplicates of 1 and 4 duplicates of 2.
I tried find(ismember(e(:,3),set)
where set = [1, 2]
and length(strfind(e(:,3),'1'))
but they not worked... couldn't find anything else
It would be better if it return me it like that
ans =
3 1
4 2