Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'How do I convert Text to a List?' topicStudent Support Forum > General > "How do I convert Text to a List?"

Next Comment >Help | Reply To Topic
Author Comment/Response
Bill
09/01/08 06:00am

Hi:

I have the following data "TestData.txt" being read, or file printed, into my Mathematica 6.0.1 notebook. Here's the code:


In[1]:= FilePrint["TestData.txt"]


Out[1]=

v -3.750000 -4.166667 -41.000004
v -4.375000 -3.777778 -41.083336
v -3.765625 -3.680556 -41.197918
v -4.160715 -3.634921 -40.761906
v -2.930804 -4.121032 -40.992565
v -1.990115 -4.160148 -40.998940
v -0.998588 -4.165736 -40.999851
v -0.249765 -4.110956 -41.083309
v -2.669506 -3.708819 -41.169922
v -1.665459 -3.719243 -41.166958
v -0.701973 -3.713705 -41.178589

Question? How do I convert the data, or text, (Out[1]), to a list without any of the the first column letters "v"?


Thanks,

Bill

PS. I want to use the final results for plotting 3D points.

URL: ,

Subject (listing for 'How do I convert Text to a List?')
Author Date Posted
How do I convert Text to a List? Bill 09/01/08 06:00am
Re: How do I convert Text to a List? Jean-Marc Gu... 09/02/08 09:34am
Re: How do I convert Text to a List? Jason Biggs 09/02/08 1:27pm
Re: How do I convert Text to a List? yehuda ben-s... 09/02/08 5:34pm
Re: How do I convert Text to a List? Bill 09/03/08 12:53pm
Next Comment >Help | Reply To Topic