Re: data from mathematica to be saved in ascii format
- To: mathgroup at smc.vnet.net
- Subject: [mg26132] Re: data from mathematica to be saved in ascii format
- From: "Paul Lutus" <nospam at nosite.com>
- Date: Tue, 28 Nov 2000 01:56:27 -0500 (EST)
- References: <8udm3d$eh2@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
"Nilanjan Mitra" <mitra at mechanik.tu-darmstadt.de> wrote in message news:8udm3d$eh2 at smc.vnet.net... > Hi, > It would be great if anyone could solve tis problem which I am facing. I > hope it is very simple but I with my limited knowledge is not able to go > through it. > I want to save a 3*3 matrix in mathematica say {{1,2,3},{1,4,5},{1,6,7}} > to the following format under a dat file. > 1.0000000e+000 2.0000000e+000 3.0000000e+000 > 1.0000000e+000 4.0000000e+000 5.0000000e+000 > 1.0000000e+000 6.0000000e+000 7.0000000e+000 > I hope someone will volunter to help me out. In[106]:= f :={{1.,2.,3.},{1.,4.,5.},{1.,6.,7.}}; strm = OpenWrite["c:/temp/test.dat"]; Write[strm,f // TableForm // TextForm]; Close[strm]; -- Paul Lutus www.arachnoid.com