MATLAB: Matrix of bits into ASCII string

asciibinaryconvert

Hi. I have a problem. I have matrix of bits ([0 1 1 1 0 1 1 1 …], every column is 1 bit) where every 8 bits are one char. I need to convert matrix into ASCII string. How can i do that?

Best Answer

char(bin2dec(reshape(char('0' + YourVector),BitsPerCharacter,[]).'))