Frequency of unique rows
Mostrar comentarios más antiguos
I want to count the frequency of the similar rows in a very long matrix. I have one million rows. I want something like below,
I have a matrix like below,
[0 0 0 0
0 0 0 0
0 0 0 1
0 0 0 1
0 0 0 1
0 0 0 2
0 0 0 2]
And I am looking for an output like below,
[0 0 0 0 2
0 0 0 1 3
0 0 0 2 2]
Thanks
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Resizing and Reshaping Matrices en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!