How to make a={'1','2','3','4'} to b={'1234'}
조회 수: 18(최근 30일)
표시 이전 댓글
a={'1','2','3','4'}
make to b={'1234'}
댓글 수: 0
채택된 답변
Wan Ji
2021년 9월 1일
The simple way is
a={'1','2','3','4'};
b = {[a{:}]}
Answer
b =
1×1 cell array
{'1234'}
댓글 수: 0
추가 답변(2개)
Walter Roberson
2021년 9월 1일
편집: Walter Roberson
2021년 9월 1일
a={'1','2','3','4'}
B = {strjoin(a, '')}
댓글 수: 0
참고 항목
범주
Find more on Characters and Strings in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!