MATLAB: Ascii to binary, binary to ascii

asciidec2binMATLAB

hello matlab lovers 🙂
x = dec2bin('enginering');
x =
1100101
1101110
1100111
1101001
1101110
1100101
1100101
1110010
1101001
1101110
1100111
y = reshape(x',1,numel(x));
y =
11001011101110110011111010011101110110010111001011110010110100111011101100111
and i will send this data from transmitter to receiver…when the receiver receives the data,it will convert y to word of engineering data and i will see word of engineering on the monitor…
that is what i mean;
how can i get back word of engineering from string of y in matlab?
pls help me…

Best Answer

char(bin2dec(reshape(y,7,[]).')).'