Count value Frequency From Array For each row, Max Frequency Row
Show older comments
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!!!!!!
Accepted Answer
More Answers (0)
Categories
Find more on Cluster Analysis and Anomaly Detection in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!