Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2001

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: list of bits to string

  • To: mathgroup at smc.vnet.net
  • Subject: [mg28709] Re: [mg28688] list of bits to string
  • From: Andrzej Kozlowski <andrzej at tuins.ac.jp>
  • Date: Thu, 10 May 2001 07:54:53 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

on 01.5.9 5:20 PM, Murray Eisenberg at murray at math.umass.edu wrote:

> I have a list consisting of binary digits, of a given length, e.g.,
> {0, 1, 1, 0, 1}.  I wish to convert this to a _string_ consisting of
> those digits: "01101".  How can this be done?
> 
> --
> Murray Eisenberg                       Internet:  murray at math.umass.edu
> Mathematics & Statistics Dept.            Voice:  413-545-2859 (W)
> University of Massachusetts                       413-549-1020 (H)
> Amherst, MA 01003                           Fax:  413-545-1801
> 
> 

One way:
In[18]:=
StringJoin[ToString /@ {0, 1, 1, 0, 1}]

Out[18]=
"01101"


Andrzej Kozlowski
Toyama International University
JAPAN

http://platon.c.u-tokyo.ac.jp/andrzej/
http://sigma.tuins.ac.jp/~andrzej/



  • Prev by Date: RE: list of bits to string
  • Next by Date: Implicit solutions for a system of de's
  • Previous by thread: Re: list of bits to string
  • Next by thread: Re: list of bits to string