Mathematica 9 is now available
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
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2001

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

Search the Archive

Re: Conversion of text into Mathematica expressions

  • To: mathgroup at smc.vnet.net
  • Subject: [mg28168] Re: [mg28160] Conversion of text into Mathematica expressions
  • From: Ken Levasseur <Kenneth_Levasseur at uml.edu>
  • Date: Tue, 3 Apr 2001 02:37:46 -0400 (EDT)
  • References: <200104020618.CAA17312@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Max:

Use ToExpression:

    Map[ToExpression,yourlist]

or the short form of Map:
     ToExpression/@yourlist

Ken Levasseur
Math. Sciences
UMass Lowell

Max Ulbrich wrote:

> Hi,
>
> does anybody know if there is a possibility to convert text into
> expressions?
> I have something like
>
> {"2.5","3.5"...}
>
> and want to convert it to
>
> {2.5,3.5...}
>
> How can I do that?
>
> Max



  • Prev by Date: Re: Plotting a function of x and y
  • Next by Date: Re: Conversion of text into Mathematica expressions
  • Previous by thread: Conversion of text into Mathematica expressions
  • Next by thread: Re: Conversion of text into Mathematica expressions