MATLAB: Binary string to character string I have first converted a text message to binary… Now I want to reverse back the binary string to character string. Msg = dec2bin[input('text=', 's'] Now when m trying bin2dec.. M not getting the text msg. Best Answer char(bin2dec(Msg))' Related SolutionsMATLAB: How to convert a string to binary and then from the binary back to string binary = reshape(dec2bin(s, 8).'-'0',1,[])str = char(bin2dec(reshape(char(binary+'0'), 8,[]).')) MATLAB: Binary string to character string userid = char(bin2dec(reshape(watermark(1:160),[],8))).'passwrd = char(bin2dec(reshape(watermark(161:320),[],8))).'str = [userid passwrd] Related QuestionI want to convert string to binary equivalent and binary to stringBinary string to character conversionBinary string to character conversionA function that converts a binary string to its corresponding char values.Binary String to ASCII
Best Answer