How to concatenate strings

2 visualizaciones (últimos 30 días)
Sameer Pujari
Sameer Pujari el 21 de Jul. de 2021
Respondida: KSSV el 21 de Jul. de 2021
Return answer = 'MIF' on passing the function
FirstLetterOfWords('Matlab Is Fun') = 'MIF'

Respuesta aceptada

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

Más respuestas (0)

Categorías

Más información sobre Logical en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by