Re: how to read this data file in mathematica?
- To: mathgroup at smc.vnet.net
- Subject: [mg46419] Re: how to read this data file in mathematica?
- From: Bill Rowe <readnewsciv at earthlink.net>
- Date: Tue, 17 Feb 2004 07:05:50 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
On 2/16/04 at 11:43 PM, sunyb at ustc.edu (newer) wrote:
>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}}
Use ReadList["data file", Number, RecordLists->True]
where "data file" is the name of the file containing the data
--
To reply via email subtract one hundred and four