Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1998
*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 1998

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

Search the Archive

Re: Thank you



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)
  • Prev by Date: Re: Convolution
  • Next by Date: Function
  • Prev by thread: Thank you
  • Next by thread: Re: Thank you