How to concatenate strings

2 Ansichten (letzte 30 Tage)
Sameer Pujari
Sameer Pujari am 21 Jul. 2021
Beantwortet: KSSV am 21 Jul. 2021
Return answer = 'MIF' on passing the function
FirstLetterOfWords('Matlab Is Fun') = 'MIF'

Akzeptierte Antwort

KSSV
KSSV am 21 Jul. 2021
str = 'Matlab Is Fun' ;
iwant = cellfun(@(v)v(1),strsplit(str))
iwant = 'MIF'

Weitere Antworten (0)

Tags

Produkte


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by