Count value Frequency From Array For each row, Max Frequency Row
Mostrar comentarios más antiguos
Hi Experts,
I have an array
a =
0 0 100 100 100 100 100 100 100 100 0 0
0 100 100 100 100 100 100 100 100 100 0 100
0 0 100 100 0 0 100 100 100 100 100 100
I want to count the number of times 100 appears in each row and extract the row number!! In this case we have
Row 1= 8
Row 2= 10
Row 3= 8
Row 2 = 10
Can any one help me to write the code lines to achieve this!!!!!!
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Cluster Analysis and Anomaly Detection 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!