How to make a={'1','2','3','4'} to b={'1234'}
7 views (last 30 days)
Show older comments
a={'1','2','3','4'}
make to b={'1234'}
0 Comments
Accepted Answer
Wan Ji
on 1 Sep 2021
The simple way is
a={'1','2','3','4'};
b = {[a{:}]}
Answer
b =
1×1 cell array
{'1234'}
0 Comments
More Answers (2)
Walter Roberson
on 1 Sep 2021
Edited: Walter Roberson
on 1 Sep 2021
a={'1','2','3','4'}
B = {strjoin(a, '')}
0 Comments
See Also
Categories
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!