frequency of element in matrix
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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.
0 comentarios
Respuestas (1)
Mischa Kim
el 19 de Mzo. de 2014
Sumi, use
[bincounts] = histc(reshape(a,1,N*N),min(min(a)):max(max(a)))
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!