Count value Frequency From Array For each row, Max Frequency Row
Ältere Kommentare anzeigen
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!!!!!!
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Cluster Analysis and Anomaly Detection 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!