[Numpy-discussion] binary to ascii
numpy-discussion at maubp.freeserve.co.uk
Tue Nov 29 15:33:04 EST 2011
On Tue, Nov 29, 2011 at 8:13 PM, Alex Ter-Sarkissov <ater1980 at gmail.com> wrote:
> hi eveyone,
> is there a simple command in numpy similar to matlab char(bin2dec('//some
> binary value//')) to convert binary to characters and back?
Would the Python struct library do? You'd get a tuple
back from struct.unpack(...) which you can turn into
a numpy array if you need to.
More information about the NumPy-Discussion