How to concatenate strings

2 views (last 30 days)
Sameer Pujari
Sameer Pujari on 21 Jul 2021
Answered: KSSV on 21 Jul 2021
Return answer = 'MIF' on passing the function
FirstLetterOfWords('Matlab Is Fun') = 'MIF'

Accepted Answer

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

More Answers (0)

Tags

Products


Release

R2021a

Community Treasure Hunt

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

Start Hunting!