frequency of element in matrix
Afficher commentaires plus anciens
I want to count the frequency of each element in NxN matrix, meaning that i need to calculate how many times each elements appears on the the matrix.
Réponses (1)
Mischa Kim
le 19 Mar 2014
Sumi, use
[bincounts] = histc(reshape(a,1,N*N),min(min(a)):max(max(a)))
Catégories
En savoir plus sur Process Point Clouds dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!