counting the numbers

조회 수: 2 (최근 30일)
kash
kash 2012년 1월 23일
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

채택된 답변

Walter Roberson
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) )
  댓글 수: 1
kash
kash 2012년 1월 23일
Thanks walter

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 String Parsing에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by