フィルターのクリア

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