# How do I plot a 3D vector field using a data file with three x y z columns?

I have a data file that is the solution of the laplace equation on a rectangular area, which has three columns: x, y and z with their numerical values. How do I plot this data into a vector field with vectors in z direction with magnitude from the third column? When I import that data as "Table", is gives me a list of lists, i.e. {{x1,y1,z1},{},...,{}}, which makes it unsuitable to use with ListVectorPlot3D[]...

Cheers

//edit I would like to use the imported data to interpret it as a vector field and calculate its rotation.

• Shows us a sample of your data but my guess -- based on the format of the data in the functions examples -- is that you will need to use Partition. Jan 8, 2013 at 0:46
• Here is a sample of the data: "0.100000 0.200000 9.793776". The values are in three columns separated by \t (without the quotation marks). What is very unclear to me is the input format ListVectorPlot3D needs and how I can Partition my data into something useful. Jan 8, 2013 at 7:09
• To plot a vector, two points are required: its beginning and end. The data you have is likely the end point, so you need the starting points. Can you give us details about the grid you were using? From that, the starting points can be generated. Jan 8, 2013 at 8:07
• The vectors should be parallel to the z axis, so the first two coordinates would not change, whereas the last coordinate would be 0 for the starting point and the value for the end point. Jan 8, 2013 at 8:25

Probably the VectorPlot[] family isn't the best for the job:
data = Flatten[Table[{i, j, Norm[{i - 5, j - 5}]}, {i, 10}, {j, 10}], 1];