Return answer = 'MIF' on passing the function
FirstLetterOfWords('Matlab Is Fun') = 'MIF'

 Akzeptierte Antwort

KSSV
KSSV am 21 Jul. 2021

0 Stimmen

str = 'Matlab Is Fun' ;
iwant = cellfun(@(v)v(1),strsplit(str))
iwant = 'MIF'

Weitere Antworten (0)

Kategorien

Produkte

Version

R2021a

Tags

Gefragt:

am 21 Jul. 2021

Beantwortet:

am 21 Jul. 2021

Community Treasure Hunt

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

Start Hunting!

Translated by