Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*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 2005

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

Search the Archive

Re: NewBie question Plot Table of points from a data file

  • To: mathgroup at smc.vnet.net
  • Subject: [mg53308] Re: NewBie question Plot Table of points from a data file
  • From: "Scout" <user at domain.com>
  • Date: Wed, 5 Jan 2005 01:21:31 -0500 (EST)
  • References: <crdkgp$qu0$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

"jfj" <jf.jouvet at opales.fr> ha scritto nel messaggio 
news:crdkgp$qu0$1 at smc.vnet.net...
> Hello,
> I want to plot a file of data (x, y, z coordinate on each line of an
> ascii file)
> I can read values with:
> pts = ReadList["myfile.dat", Table[Number, {3}]]
> but How display it
> Show[Graphics3D[pts]] give me error
> How access to my Table pts?
> How compute for instance pts[1,1] + pts[2,1] ?
> Thanks in advance for your help
>

t=Import ["filename.ext", "Table"];

                    This imports data in the table t

t[[i]]             gives you the i-th element (point) of the list t.

Show[Graphics3D[Point /@ t ]];

                    This plots all points in 3D space.


I hope that helps you.

~Scout~



  • Prev by Date: Re: direct product of two sets
  • Next by Date: Re: SymbolShape
  • Previous by thread: NewBie question Plot Table of points from a data file
  • Next by thread: Re: NewBie question Plot Table of points from a data file