Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

How can i count the value of a string?

1 Ansicht (letzte 30 Tage)
ahmet ozdemir
ahmet ozdemir am 12 Mai 2016
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
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.

Antworten (1)

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

Diese Frage ist geschlossen.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by