Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2001
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2001

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

Search the Archive

Re: data files

  • To: mathgroup at smc.vnet.net
  • Subject: [mg31182] Re: [mg31164] data files
  • From: Tomas Garza <tgarza01 at prodigy.net.mx>
  • Date: Tue, 16 Oct 2001 01:19:03 -0400 (EDT)
  • References: <200110140811.EAA02428@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

I wonder what you mean by plotting a matrix of data. Other than that, if
your file is stored in text format (and it is composed of numbers only) as
"sample.txt", try

b = ToExpression /@ Import["sample.txt", "Table"]

and if you want to output to a file "sample2.txt", use

Export["sample2.txt", b, "Table"]

Tomas Garza
Mexico City
----- Original Message -----
From: "Tim" <tmario at ozemail.com.au>
To: mathgroup at smc.vnet.net
Subject: [mg31182] [mg31164] data files


> I wish to plot data stored as a matrix in a text file.  I also want to be
> able to output data into a file.  How can I achieve this ?
>
> Thanks
>
> Tim
>
>



  • References:
  • Prev by Date: Re: Plot-Function
  • Next by Date: Re: Plot-Function
  • Previous by thread: data files
  • Next by thread: MultiProcessor Kernel.