Convert the contents of array to char
Ältere Kommentare anzeigen
hi everybody i want convert content of array to char. for example for 'h'
bin=[0,0,0,1,0,1,1,0];
>> char(bin2dec(num2str(bin)))
but, this does not work. can anyone help me? thanks
Akzeptierte Antwort
Weitere Antworten (1)
Jan
am 28 Okt. 2015
Or:
bin = [0,0,0,1,0,1,1,0];
pool = '01';
str = pool(bin + 1);
Kategorien
Mehr zu Data Type Conversion finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!