필터 지우기
필터 지우기

Concatenating string in a unique string

조회 수: 2 (최근 30일)
Bio_Ing_Sapienza
Bio_Ing_Sapienza 2019년 3월 19일
답변: Walter Roberson 2019년 3월 19일
Hi everyone.
A={'AAA','BBB','CCC','DDD'};
Given that cell array of string I want to obtain an unique string namely I want, call it D to be
D='AAABBBCCCDDD';
How can I do?

채택된 답변

Walter Roberson
Walter Roberson 2019년 3월 19일
horzcat(A{:})
or
strjoin(A, '')

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by