Re: how to read this data file in mathematica?
- To: mathgroup at smc.vnet.net
- Subject: [mg46423] Re: how to read this data file in mathematica?
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Tue, 17 Feb 2004 07:05:54 -0500 (EST)
- Organization: Universitaet Leipzig
- References: <c0s8tt$sm5$1@smc.vnet.net>
- Reply-to: kuska at informatik.uni-leipzig.de
- Sender: owner-wri-mathgroup at wolfram.com
Hi, In[]:=!! test.dat 8.1000E-01 1.6090E+03 8.3000E-01 1.5490E+03 8.5000E-01 1.5810E+03 8.7000E-01 1.5120E+03 8.9000E-01 1.5650E+03 9.1000E-01 1.5680E+03 9.3000E-01 1.5450E+03 9.5000E-01 1.6570E+03 9.7000E-01 1.5900E+03 9.9000E-01 1.5750E+03 In[]:=Import["test.dat", "Table"] Out[]={{0.81, 1609.}, {0.83, 1549.}, {0.85, 1581.}, {0.87, 1512.}, {0.89, 1565.}, {0.91, 1568.}, {0.93, 1545.}, {0.95, 1657.}, {0.97, 1590.}, {0.99, 1575.}} Regards Jens newer wrote: > > hi, > I have a data file with its first line of data as follows: > 8.1000E-01 1.6090E+03 > 8.3000E-01 1.5490E+03 > 8.5000E-01 1.5810E+03 > 8.7000E-01 1.5120E+03 > 8.9000E-01 1.5650E+03 > 9.1000E-01 1.5680E+03 > 9.3000E-01 1.5450E+03 > 9.5000E-01 1.6570E+03 > 9.7000E-01 1.5900E+03 > 9.9000E-01 1.5750E+03 > Now I want to read it in mathematica and transform it to satisfy the > data format as below. > > {{8.1000E-01 1.6090E+03}, > {8.3000E-01 1.5490E+03}, > {8.5000E-01 1.5810E+03}} > > what should i do? > thx!