Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.



Re: counting number of elements in matrix
Posted:
Apr 5, 2013 2:09 AM


"radhika" wrote in message <kjlhp5$75g$1@newscl01ah.mathworks.com>... > hi, > i have matrix size 256*256. i need to find the occurance of each element in matrix and want to store it in array. > for example ,In 2*2 matrix > [0 1:2 1] output should be count(0) ,ccount(1),count(2) in array > so [0 2 1]... > please anyone help me
http://www.mathworks.com/matlabcentral/newsreader/view_thread/291578
Scroll down, there are three methods posted there.
Bruno



