frequency of element in matrix
Ältere Kommentare anzeigen
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.
Antworten (1)
Mischa Kim
am 19 Mär. 2014
Sumi, use
[bincounts] = histc(reshape(a,1,N*N),min(min(a)):max(max(a)))
Kategorien
Mehr zu Process Point Clouds finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!