How to concatenate strings

2 次查看(过去 30 天)
Sameer Pujari
Sameer Pujari 2021-7-21
回答: KSSV 2021-7-21
Return answer = 'MIF' on passing the function
FirstLetterOfWords('Matlab Is Fun') = 'MIF'

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

标签

产品


版本

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by