Count value Frequency From Array For each row, Max Frequency Row
古いコメントを表示
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!!!!!!
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Cluster Analysis and Anomaly Detection についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!