counting the numbers
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposta accettata
Walter Roberson
il 23 Gen 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) )
Più risposte (0)
Vedere anche
Categorie
Scopri di più su String Parsing in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!