Re: three column output
- To: mathgroup at smc.vnet.net
- Subject: [mg64843] Re: three column output
- From: bghiggins at ucdavis.edu
- Date: Sun, 5 Mar 2006 03:19:05 -0500 (EST)
- References: <dubhjr$ftc$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Will the following do what you want:
f[u_,v_]:=Sin[u+v]
mydata = Flatten[Table[{u, v, f[u,v]} // N, {u, 0, 2 Pi}, {v, 0, 2Pi}],
1]; mydata // MatrixForm
Note that MatrixForm is a wrapper function that affects output display
in the frontend
If you need to export the data as a CSV table use the following
(insert the correct path for where you want the file to be exported to)
Export["/Users/brian/Desktop/mydata.csv", mydata, "CSV"]
Or if you want to export to a tab seprated table use the following
Export["/Users/brian/Desktop/mydata.dat", mydata, "Table"]
Hope this helps,
Cheers,
Brian