Convert the contents of array to char
Afficher commentaires plus anciens
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
Réponse acceptée
Plus de réponses (1)
Jan
le 28 Oct 2015
Or:
bin = [0,0,0,1,0,1,1,0];
pool = '01';
str = pool(bin + 1);
Catégories
En savoir plus sur Data Type Conversion dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!