[Date Index]
[Thread Index]
[Author Index]
Re: How to let output data in mathematica note book become data in wordpad.
*To*: mathgroup at smc.vnet.net
*Subject*: [mg79950] Re: [mg79890] How to let output data in mathematica note book become data in wordpad.
*From*: "Nicholas Devenish" <misnomer at gmail.com>
*Date*: Thu, 9 Aug 2007 05:25:43 -0400 (EDT)
*References*: <200708080848.EAA05769@smc.vnet.net>
Export["test.tsv", { {4, 5, 6, 7}, {4, 5, 6, 8}}]
On 8/8/07, Evanescence <origine26 at yahoo.com.tw> wrote:
> Hello dear all:
> My questions are as follows:
> I have some data in mathematica note book ,but I want to let these
> data become into wordpad,then use these data in wordpad into Tecplot
> to plot graphy.
> If I direct copy the data in mathematica note book , then paste in the
> wordpad,sometimes the data will malposition or disorder,and when I use
> the copy and paste in wordpad,the program code in mathematica note
> book will paste in wordpad,too.
> So,I want to know how to let output data in mathematica note book
> become data in wordpad.
>
> About above statement,I give a example
> In mathematica note book I have data as follows:
> 0.5 0 -3.54839E34
> 0.5 0.5 8.35014E19
> 0.5 1 -2.28982E12
> 0.5 1.5 -7.55475E7
> 0.5 2 111888
> 0.5 2.5 -32.2785
> 0.5 3 -48.9518
> 0.5 3.5 -3.1687
> 0.5 4 0.268688
> 0.5 4.5 0.339734
> 0.5 5 0.214192
> 0.5 5.5 0.124596
> 0.5 6 0.0673404
> 0.5 6.5 0.0286447
> 0.5 7 0.00022441
> 0.5 7.5 -0.0223948
> 0.5 8 -0.0416674
> 1 0 0
> 1 0.5 8.93875E9
> 1 1 4.46247E7
> 1 1.5 -248451
> 1 2 275.046
> 1 2.5 3.5647
> 1 3 9.43887
> 1 3.5 -0.475709
> 1 4 0.715417
> 1 4.5 0.817926
> 1 5 0.592825
> 1 5.5 0.374401
> 1 6 0.207512
> 1 6.5 0.0813604
> 1 7 -0.0182152
> 1 7.5 -0.101253
> 1 8 -0.174169
>
> but when I paste to the wordpad it will become
> \!\(\*GridBox[{
> {"0.5`", "0", \(-3.5483888083337505`*^34\)},
> {"0.5`", "0.5`", "8.350139205560998`*^19"},
> {"0.5`", "1.`", \(-2.289817957793992`*^12\)},
> {"0.5`", "1.5`", \(-7.554752273944195`*^7\)},
> {"0.5`", "2.`", "111887.68419682512`"},
> {"0.5`", "2.5`", \(-32.27849924478728`\)},
> {"0.5`", "3.`", \(-48.95175852696526`\)},
> {"0.5`", "3.5`", \(-3.1687029851513375`\)},
> {"0.5`", "4.`", "0.26868832556046757`"},
> {"0.5`", "4.5`", "0.3397343573125788`"},
> {"0.5`", "5.`", "0.2141915242910175`"},
> {"0.5`", "5.5`", "0.12459556032158843`"},
> {"0.5`", "6.`", "0.06734040113993797`"},
> {"0.5`", "6.5`", "0.028644727373548104`"},
> {"0.5`", "7.`", "0.00022441038042603223`"},
> {"0.5`", "7.5`", \(-0.022394784835583534`\)},
> {"0.5`", "8.`", \(-0.041667393157546494`\)},
> {"1.`", "0", "0"},
> {"1.`", "0.5`", "8.93874965187576`*^9"},
> {"1.`", "1.`", "4.462474932862874`*^7"},
> {"1.`", "1.5`", \(-248451.2105254929`\)},
> {"1.`", "2.`", "275.04572112711736`"},
> {"1.`", "2.5`", "3.5646987110223947`"},
> {"1.`", "3.`", "9.438874116544737`"},
> {"1.`", "3.5`", \(-0.4757091455964974`\)},
> {"1.`", "4.`", "0.7154169114542397`"},
> {"1.`", "4.5`", "0.8179258123350419`"},
> {"1.`", "5.`", "0.5928249634487628`"},
> {"1.`", "5.5`", "0.3744006137437067`"},
> {"1.`", "6.`", "0.20751194656397315`"},
> {"1.`", "6.5`", "0.08136042333154708`"},
> {"1.`", "7.`", \(-0.018215215580189348`\)},
> {"1.`", "7.5`", \(-0.10125281059779162`\)},
> {"1.`", "8.`", \(-0.17416921776672623`\)},
> RowSpacings->1,
> ColumnSpacings->3,
> RowAlignments->Baseline,
> ColumnAlignments->{Left}]\)
>
> I want to the data in wordpad as same as in mathematica note book.
> Please tell me how to do it.
> Thank very much.
> Evanescence 2007 08 07
>
>
>
It looks like you are looking for the Export function. try something like
Export["datafile.tsv", data]
where data is a variable containing the data you wish to export, and
it'll make a new file in your default directory with the data.
Export works with many file types, for instant comma-seperated value
files, which you get by using the file extension csv (You can also
specify file type seperately from the extension, check out Export in
the mathematica documentation)
Prev by Date:
**Re: How to let output data in mathematica note book become data in wordpad.**
Next by Date:
**Re: why DateListPlot is so slow?**
Previous by thread:
**RE: How to let output data in mathematica note book become**
Next by thread:
**Re: How to let output data in mathematica note book become data in wordpad.**
| |