Re: This Should Be Easy.
- To: mathgroup@smc.vnet.net
- Subject: [mg11876] Re: [mg11833] This Should Be Easy.
- From: "Jürgen Tischer" <jtischer@pitagoras.univalle.edu.co>
- Date: Fri, 3 Apr 1998 03:45:34 -0500
Hi Chris, try this: In[1]:= m={{47,98},{34,45}}; In[2]:= stream=OpenWrite["test.dat"]; In[3]:= WriteString[stream,ToString[TableForm[m]]]; In[4]:= Close[stream]; J|rgen -----Original Message----- From: Chris Farr <farr@brown.edu> To: mathgroup@smc.vnet.net Subject: [mg11876] [mg11833] This Should Be Easy. > >Math Group: > >I'm just trying to ouput a matrix in Mathematica to a file without all >of the { {}, {} } etc. That is I want an ascii file that looks like >the following: > >47 98 >34 45 >. . >. . >. . > >as opposed to > >{{47,98},{34,45},...} > >My ultimate goal is to put the matrix data into Excel. Is there an >elegant way to do this? I've perused the help in Mathematica but could > not find anything. > >Thanks in advance, > >Chris Farr >