counting the numbers
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponse acceptée
Walter Roberson
le 23 Jan 2012
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) )
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur String Parsing dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!