How to concatenate strings

5 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)

Categories

Find more on Numeric Types in Help Center and File Exchange

Tags

Products


Release

R2021a

Community Treasure Hunt

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

Start Hunting!