Azzera filtri
Azzera filtri

How to concatenate strings

3 visualizzazioni (ultimi 30 giorni)
Sameer Pujari
Sameer Pujari il 21 Lug 2021
Risposto: KSSV il 21 Lug 2021
Return answer = 'MIF' on passing the function
FirstLetterOfWords('Matlab Is Fun') = 'MIF'

Risposta accettata

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

Più risposte (0)

Tag

Prodotti


Release

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by