Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2001
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Email this page
*Give us feedback
*
Sign up for our newsletter:

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: [mg28705] Re: [mg28688] list of bits to string
  • From: Adalbert Hanssen <hanssen at zeiss.de>
  • Date: Thu, 10 May 2001 07:54:50 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

> 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?


Hi Murray,

try this

Apply[StringJoin,ToString/@ {0,1,0,0,1,0,0,1} ]

"01001001"

regards

Adalbert


  • Prev by Date: Re: list of bits to string
  • Next by Date: Re: list of bits to string
  • Previous by thread: Re: list of bits to string
  • Next by thread: Re: list of bits to string


  •  © 2008 Wolfram Research, Inc.  Terms of Use  Privacy Policy