How to concatenate strings

조회 수: 1 (최근 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