MathGroup Archive 2004

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

Search the Archive

Re: how to take quotation marks away ?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg48571] Re: how to take quotation marks away ?
  • From: "Dr. Wolfgang Hintze" <weh at snafu.de>
  • Date: Sat, 5 Jun 2004 07:19:19 -0400 (EDT)
  • References: <c9k3op$fe7$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Just to add a new species to the zoo of solutions

Putting

x={{"42.1,3.3"},{"3.1,4.2"}}

you get what you want using

y=(ReadList[#1,Number] & ) /@ StringToStream /@ 
Flatten[(StringReplace[#1,","->" "] & ) /@ x]

Wolfgang

Florian Jaccard wrote:

> Dear Mathematica-specialists,
> 
>  
> 
> I have a  (long)  list of the form   {{"42.1,3.3"},{"3.1,4.2"}}  
> 
> How can I transform it to obtain  {{42.1,3.3},{3.1,4.2}} ?
> 
> I tried ToExpression, but it failed.
> 
>  
> 
> Thanks in advance !
> 
>  
> 
> Greetings
> 
>  
> 
> F.Jaccard
> 
>  
> 


  • Prev by Date: Re: Random Matrix of Integers
  • Next by Date: Simplifying Expressions with Ratios of Factors
  • Previous by thread: Re: how to take quotation marks away ?
  • Next by thread: Disabling Shadow Errors, XEmacs with Mathematica, coloring