counting the numbers
2 次查看(过去 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!