Re: 3D graphing from text file?

  • Follow


On 3/10/10 at 1:46 AM, cubsfan334@gmail.com (cubsfan334) wrote:

>I have a text file with the coordinates of a number of different
>points, and I would like to plot them using the ListPointPlot3D
>command.  My text file is arranged like this:

>x1 *tab* y1 *tab* z1 *tab* x2 *tab* y2 *tab* z2 *tab* x3 etc, with
>nothing but tabs in between.  Is it possible to have mathematica
>automatically parse this file and insert brackets and commas in the
>proper place, so the result would look like this:

>{{x1, y1, z1}, {x2, y2, z2}, {x3, y3, z3}} etc?

Assuming each item between tabs is a numeric item, then

Partition[ReadList[filename, Number],3]

will do what you want.


0
Reply Bill 3/11/2010 11:36:00 AM


0 Replies
338 Views

(page loaded in 0.011 seconds)

Similiar Articles:













7/22/2012 8:01:12 AM


Reply: