Re: Thank you
- To: mathgroup@smc.vnet.net
- Subject: [mg10944] Re: [mg10862] Thank you
- From: seanross@worldnet.att.net
- Date: Sat, 14 Feb 1998 00:53:18 -0500
- References: <199802112332.SAA18996@smc.vnet.net.>
Mingwu Bai wrote: > > Dear Sir: > I am your legal user of the software of Mathematica. Please kindly tell > me h ow to output the calculation results to a file, not to a graph. > > For example, > Plot[Sin[x], {x, 0, 3.14}] > I want to output the both the x and Sin[x] results to a file (e.g., > "filename"). > > Thank you. > sincerely, > Ming-wu Bai (PhD) > e-mail: mbai@tribo.mech.tohoku.ac.jp One way is to make a table and write it to a file: mydata=Table[{x,Sin[x]},{x,0,3.14,.1}]; streamout=OpenWrite["fullpathname"]; Write[streamout,mydata]; Close[streamout];Clear[streamout]; -- Remove the _nospam_ in the return address to respond.
- References:
- Thank you
- From: mbai@tribo.mech.tohoku.ac.jp (Mingwu Bai)
- Thank you