From: Alex Ter-Sarkissov on 1 Aug 2010 01:40 hi, does anyone know how to convert characters into binary and back? I can easily do this with real numbers, but can't sort it out with characters. cheers, Alex
From: Roger Stafford on 1 Aug 2010 02:09 "Alex Ter-Sarkissov" <ater1980(a)gmail.com> wrote in message <i331bp$q3p$1(a)fred.mathworks.com>... > hi, > > does anyone know how to convert characters into binary and back? I can easily do this with real numbers, but can't sort it out with characters. > > cheers, > > Alex http://en.wikipedia.org/wiki/ASCII
From: Walter Roberson on 1 Aug 2010 03:24 Alex Ter-Sarkissov wrote: > does anyone know how to convert characters into binary and back? I can > easily do this with real numbers, but can't sort it out with characters. Hint: 'abc123' + 0
From: Alex Ter-Sarkissov on 1 Aug 2010 18:25 thanks, but is there a more straightforward command that transforms characters into binary and back, such as dec2bin? cheers, Alex
From: Walter Roberson on 1 Aug 2010 18:43 Alex Ter-Sarkissov wrote: > thanks, but is there a more straightforward command that transforms > characters into binary and back, such as dec2bin? What matlab version are you using? >> dec2bin('abc',8) ans = 01100001 01100010 01100011
|
Next
|
Last
Pages: 1 2 Prev: An exact 1-D integration challenge - 66 - (sqrt, sin) Next: question!!! |