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: [mg28738] Re: list of bits to string
  • From: Ignacio Rodriguez <ignacio at sgirmn.pluri.ucm.es>
  • Date: Fri, 11 May 2001 03:38:53 -0400 (EDT)
  • References: <9de1rb$gvp@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Flatten does nothing to a depth 1 list. Flatten[{0,1,1,0,1}]->{0,1,1,0,1}

then, ToString[{0,1,1,0,1}]->{0,1,1,0,1}

VirtuaDAN at aol.com wrote:

>        It's a two step process. The first thing you need to do is use the
> "Flatten" function on your list. Then take that and use "ToString" on it.
>
> The code:
>
> a={0, 1, 1, 0, 1}
> ToString[Flatten[a]]
>
> should suffice.
>
> Dan Recht
> Virtuadan at Aol.com

--

Ignacio Rodriguez Ramirez de Arellano
Unidad de RMN
Universidad Complutense
Paseo Juan XXIII, 1
Madrid 28040, Spain

Tel. 34-91-394-3288
Fax  34-91-394-3245
e-mail: ignacio at sgirmn.pluri.ucm.es





  • Prev by Date: Replacing Parts of a List
  • Next by Date: Win2000
  • Previous by thread: Re: list of bits to string
  • Next by thread: Re: Re: list of bits to string