Re: Question about Export command
- To: mathgroup at smc.vnet.net
- Subject: [mg49411] Re: Question about Export command
- From: Bill Rowe <readnewsciv at earthlink.net>
- Date: Sun, 18 Jul 2004 08:09:21 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
On 7/16/04 at 6:06 AM, gilmar.rodriguez at nwfwmd.state.fl.us (Gilmar Rodr?guez Pierluissi) wrote: >I have a set: >blimp={2, 3, 3, 5, 5, 7, 5, 7, 7, 11, 11, 13, 11, 13, 13, 17, 17, >19, 17, 19, 13, 23, 19, 19, 23, 23, 19, 29, 29, 31, 23, 29, 31, 29, >31, 37, 29, 37, 37, 41, 41, 43, 41, 43, 31, 47, 43, 37, 47} >When I export it via: >Export["C:\Temporary\zepelin.txt,"Table",ConversionOptions->{" >TableAlignment"->Center]; I assume what you actually did was Export["C:\Temporary\zepelin.txt,blimp,"Table",ConversionOptions->{" TableAlignment"->Center]; Since what you typed above would not generate the output you indicated below >I get a file zepelin.txt with the data arranged as follows: >2, 3, 3, 5, 5, 7, 5, 7, 7, 11, 11, 13, 11, 13, >13, 17, 17, 19, 17, 19, 13, 23, 19, 19, 23, 23, 19, 29, 29, 31, 23, >29, 31, 29, 31, 37, 29, 37, 37, 41, 41, 43, 41, 43, 31, 47, 43, 37, >47 >My question is: how can I manipulate the Export command so that >my file zepelin.txt contains the transpose of the above data >arrangement; >2 >3 >3 >5 >5 >7 >7 >etc.? Simply use transpose, i.e., Export["C:\Temporary\zepelin.txt,Transpose@{blimp},"Table",ConversionOptions->{" TableAlignment"->Center]; -- To reply via email subtract one hundred and four