counting the numbers
1 回表示 (過去 30 日間)
古いコメントを表示
i have a dataset
a=
>50
<=50
<=50
>50
<=50
i called these vales using xlsread and i ger
raw=
'>50'
'<=50'
'<=50'
'>50'
'<=50'
now i want to count how many values are in >50,<=50
0 件のコメント
採用された回答
Walter Roberson
2012 年 1 月 23 日
Do you mean the file contains literal strings, and you want to know how many of each string occurs? If so, then
sum( strcmp('>50', raw) )
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で String Parsing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!