How to make a={'1','2','3','4'} to b={'1234'}
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
a={'1','2','3','4'}
make to b={'1234'}
0 Commenti
Risposta accettata
Wan Ji
il 1 Set 2021
The simple way is
a={'1','2','3','4'};
b = {[a{:}]}
Answer
b =
1×1 cell array
{'1234'}
0 Commenti
Più risposte (2)
Walter Roberson
il 1 Set 2021
Modificato: Walter Roberson
il 1 Set 2021
a={'1','2','3','4'}
B = {strjoin(a, '')}
0 Commenti
Vedere anche
Categorie
Scopri di più su Characters and Strings in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!