Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2006
*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 2006

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

Search the Archive

RE:How to extract numbers from list elements with text?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg70362] RE:How to extract numbers from list elements with text?
  • From: abdou.oumaima at hotmail.com
  • Date: Sat, 14 Oct 2006 03:07:09 -0400 (EDT)

hello,
To modify the list elements, please use ReplacePart Command. 
L={ 1 Intensity 0.23523, 2 Intensity 0.00005, 3 Intensity 0.00004, ..}
ReplacePart[L, 0.4 Intensity 0.00007,2].
yields:
{ 1 Intensity 0.23523, 0.4 Intensity 0.00007, 3 Intensity 0.00004, ..}
regards

Link to the forum page for this post:
http://www.mathematica-users.org/webMathematica/wiki/wiki.jsp?pageName=Special:Forum_ViewTopic&pid=14381#p14381
Posted through http://www.mathematica-users.org [[postId=14381]]



  • Prev by Date: How to solve this system of equations in Mathematica
  • Next by Date: Re: How do you open all cells?
  • Previous by thread: Re: How to extract numbers from list elements with text?
  • Next by thread: Re: How to extract numbers from list elements with text?