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

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

Search the Archive

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


  • Prev by Date: Re: Multiple application of LinearFilter
  • Next by Date: Re: three column output
  • Previous by thread: three column output
  • Next by thread: Re: three column output