필터 지우기
필터 지우기

Combine cell array into a long string

조회 수: 2 (최근 30일)
Sean Lineaweaver
Sean Lineaweaver 2021년 2월 17일
답변: Walter Roberson 2021년 2월 17일
How do I reformat this cell array into one long string?
Original array:
CA = {'AAA ', 'BBB ', 'CCC '};
Desired String:
'AAA BBB CCC'

채택된 답변

Walter Roberson
Walter Roberson 2021년 2월 17일
CA = {'AAA ', 'BBB ', 'CCC '};
strjoin(CA, '')
ans = 'AAA BBB CCC '

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Characters and Strings에 대해 자세히 알아보기

태그

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by