How to join the elements of char array?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I have an array with size not fixed depends on the inputs from the user. It is eg. 8X2 char array. I want to combine the array in 1 string.
eg. If it consists 61 62 63 64 65
I want a string of the form "6162636465"
Plz help as soon as possible.
0 Kommentare
Antworten (1)
Andrei Bobrov
am 31 Mär. 2013
a=[61 62 63 64 65]
out = sprintf('%d',a)
Siehe auch
Kategorien
Mehr zu Characters and Strings finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!