Filter löschen
Filter löschen

Info

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

please suggest me the MATLAB expression to count the no of literals in a string

2 Ansichten (letzte 30 Tage)
tina jain
tina jain am 6 Apr. 2015
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
e.g. I am having a string t6Pt4P2t3
then no of chars in it are 10. So I want a code which take utt6Pt4P2t3 as input and output me the 10(no of chrs) as output.

Antworten (1)

Mahdiyar
Mahdiyar am 6 Apr. 2015
Hi Jain
The number of character in tis string (utt6Pt4P2t3) is 11 :) .You can use the following command.
String = 'utt6Pt4P2t3'
No_Char = length(String)
Regards,

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