필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

How can i count the value of a string?

조회 수: 1 (최근 30일)
ahmet ozdemir
ahmet ozdemir 2016년 5월 12일
마감: MATLAB Answer Bot 2021년 8월 20일
I want to calculate a string how many staffs in there. For example
1)Steven Alex Mason 28 85 65.5
2)Alex Jones 29 35 60
For example 1 it has 6 elements and 2 it has 5 elements. I would like to find them.

답변 (1개)

KSSV
KSSV 2016년 5월 12일
str = 'I love MATLAB' ;
A=strread(str,'%s','delimiter',' ') ;
length(A{1})
length(A{2})
length(A{3})

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by