MathGroup Archive 2004

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

Search the Archive

Re: Export to file

  • To: mathgroup at smc.vnet.net
  • Subject: [mg50923] Re: [mg50904] Export to file
  • From: "Maxim A. Dubinnyi" <maxim at nmr.ru>
  • Date: Tue, 28 Sep 2004 00:58:32 -0400 (EDT)
  • References: <200409270442.AAA07145@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

(In[1])  datatab = Table[{i, i^2/2., i^3/3.}, {i, 0, 10}];
(In[2])  *Export["C:/MyPoints.txt"**, datatab, "TABLE"]*  (* !!!<<<YOUR 
SOLUTION  *)
(Out[2]) "C:/MyPoints.txt"

(In[3])  !! "C:/MyPoints.txt"
(Out[3])
0    0      0
1    0.5    0.3333333333333333
2    2.     2.6666666666666665
3    4.5    9.
4    8.     21.333333333333332
5    12.5   41.666666666666664
6    18.    72.
7    24.5   114.33333333333333
8    32.    170.66666666666666
9    40.5   243.
10   50.    333.33333333333333


CYSTERNA++ wrote:

>I have parametric function sX[i], sY[i], sZ[i] and I want to export
>coordinate of points to file.
>For each "i" from "0" to "100" I calculate coordinates and print to file.
>(see below)
>
>
>For[i = 0. i < 100 , i += 1,
>      PutAppend[
>        StringJoin[
>           ToString[sX[i]],
>           " ",
>           ToString[sY[i]],
>           " ",
>           ToString[sZ[i]]],
>           "C:/MyPoints.txt"]
>    ]
>
>I have BIG problem, because of format of these numbers (coordinates)
>My file looks like as follow :
>
>"18.4568 44.6881 -2.47084"
>"19.8777 40.9391 1.23937"
>.......................................
>......................................
>
>but I need other format (whithout quotation marks) like below
>
>18.4568 44.6881 -2.47084
>19.8777 40.9391 1.23937
>.......................................
>......................................
>
>How can I do this in Mathematica 4.0.
>Please Help me.
>
>Thank You for Your ansswers.
>
>  
>



  • Prev by Date: Re: A list element replacement.
  • Next by Date: Re: Export to file
  • Previous by thread: Export to file
  • Next by thread: Re: Export to file