I would like to be able to return the count of occurences of each element in a vector.
For example if I have a vector:
x=[10 25 4 10 9 4 4]
I expect the result to be
y=[2 1 3 2 1 3 3].
counthistogramMATLABoccurencesrepetitionsunique
x=[10 25 4 10 9 4 4]
y=[2 1 3 2 1 3 3].
Best Answer