[Date Index] [Thread Index] [Author Index]
Jim Banaszak wrote: > > What is the easiest way to write columns of Mathematica output to a text > file? > In other words, if: > > f[t_]:=t^2; g[t_]:=t^2 > > How can I output the columns t, f[t], and g[t] to a tab, space, or comma > delineated text file? > > Thanks, > > Jim Banaszak > > -- > -- > Jim Banaszak > Department of Civil Engineering > Northwestern University > 2145 Sheridan Road > Evanston, IL 60208-3109 > > e-mail: firstname.lastname@example.org > Phone: 847-459-3809 > fax: 630-252-1845 My default trick is to make a matrix with the numbers I want, then use ToString and convert the whole thing to a string and put in the characters I want with the string manipulation commands built in to mathematica. When I am happy with the result, I then Write it to a file. -- Remove the _nospam_ in the return address to respond.