Convert the contents of array to char
Show older comments
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
Accepted Answer
More Answers (1)
Jan
on 28 Oct 2015
Or:
bin = [0,0,0,1,0,1,1,0];
pool = '01';
str = pool(bin + 1);
Categories
Find more on Data Type Conversion 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!