Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1994
*January
*February
*March
*April
*May
*June
*July
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1994

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

Search the Archive

Re: formatted data

  • To: mathgroup at yoda.physics.unc.edu
  • Subject: Re: formatted data
  • From: Simon Chandler <simonc at hpcpbla.bri.hp.com>
  • Date: Fri, 1 Jul 1994 14:33:08 +0100

1/7/94

In answer to the following...

> From: Patrick Bradshaw <bradshaw at dirac.scri.fsu.edu>
> Subject: formatted data
> To: mathgroup at yoda.physics.unc.edu
> Date: Wed, 29 Jun 1994 23:31:04 -0500 (EDT)
> 
> Sorry if this is an often-asked question, but I was wondering if there was
> a way (a package?) to read in a formatted data file (using like a "formatted
> read" statement from Fortran).
> 
> For example, if a line of the data looks like
> 
>  47950  4 9450
> 
> I would like to read the data into a list looking like
> 	{47.950, 4., 9.450}
> 
> I looked through MathSource and didn't find anything, but perhaps I 
> overlooked something.
> 

Have a look at

0203-881: Reading Data into Mathematica (June 1992)
          Author: John M. Novak
          Directory:  General/Tutorials/General
	  Mathematica can be a powerful tool for the manipulation of
          information.  To process information, however, it must first be
          made accessible to the kernel, or read into Mathematica.
          Mathematica provides many tools to read in data, and put it into a
          useful form.  This document explores some of these techniques,
          particularly those associated with reading files. Reprint from the
          Mathematica Conference, June 1992, Boston.  11 pages.

          0011:  ReadData.ps PostScript document (June 1992; 153 kilobytes)

It's a pretty good article and should help solve your problem. Does it ?

Dr Simon Chandler
Hewlett-Packard Ltd (CPB)
Filton Road
Stoke Gifford
Bristol
BS12 6QZ

Tel:   0272 228109
Fax:   0272 236091
email: simonc at bri.hp.com

P.S. I got this abstract from the MathSource Listing.txt file. Its the
best way I know to find things in the mathSource.







  • Prev by Date: Yet more Timing[10000!] ...
  • Next by Date: Reading Formatted Data
  • Previous by thread: Re: formatted data
  • Next by thread: Alternative to Timing[10000!] benchmark