Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Read file and only keep numbers' topicStudent Support Forum > General > "Read file and only keep numbers"

Next Comment >Help | Reply To Topic
Author Comment/Response
Stephen
06/21/07 3:23pm

I have an output from a piece of equipment that is formatted as follows:

acq_tip_pos_x 128      
acq_tip_pos_y 128      
lb tip pos x 25      
lb tip pos y 230      
BiasAppliedTo 0      
data 2000      
4.09E+03   -5.23E+02   
4.08E+03   -5.15E+02   
4.07E+03   -5.13E+02   
4.06E+03   -5.23E+02   
4.05E+03   -5.14E+02   
4.04E+03   -5.14E+02   
4.04E+03   -5.22E+02   
4.03E+03   -5.13E+02   

I was wondering how I would read in the data but only keep the numbers. I also need the numbers to be read into a list for curve fitting.

Not sure if this matters but the file is over 23000 lines long.

Thanks,
Stephen

URL: ,

Subject (listing for 'Read file and only keep numbers')
Author Date Posted
Read file and only keep numbers Stephen 06/21/07 3:23pm
Re: Read file and only keep numbers yehuda ben-s... 06/25/07 1:20pm
Re: Re: Read file and only keep numbers Stephen 06/26/07 3:53pm
Next Comment >Help | Reply To Topic