Re: hwo to export data to file
- To: mathgroup at smc.vnet.net
- Subject: [mg59570] Re: [mg59535] hwo to export data to file
- From: Pratik Desai <pdesai1 at umbc.edu>
- Date: Fri, 12 Aug 2005 00:09:35 -0400 (EDT)
- References: <200508110857.EAA24739@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
longbw2005 wrote: >Dear sir/Madam: > Hi, Thank you for your interests. Here i have two problems which you may offer help. >The first problem is " how to save my numeric calculation results into a file in a specific format and the file could be readily read by common software such as excel, word or origin ? For example, suppose my calculation results is a list:{1.3332, 2.5, 3.12,5.5},{2.5,7.8,9.90,2.47894}, >{7.3444,5.778,2.11,3} and I expect the file will be open with the format like this: > > 1.333 2.500 3.120 5.500 > 2.500 7.800 9.900 2.479 > 7.344 5.778 2.110 3.000 > >i know in Mathematica environment it works by using PaddedForm function but how to export data into a file with that format. > > Maybe something like this dat1 = {{1.3332, 2.5, 3.12, 5.5}, {2.5, 7.8, 9.90, 2.47894}, {7.3444, 5.778, 2.11, 3}} // TableForm SetDirectory["C://"] Export["dat1.xls", dat1, "XLS"] >The second problem is how to make mathematica to evaluate a formula instantly with all the parameter/variables known, especially for the numeric functions such as FindRoot and NDSolve. > > I am not sure what you mean by this, I guess if you put your expression correctly Shift+Enter seems to work adequately for me :-) >______________________________________ > >×¢²áÐÂÀËÃâ·ÑÓÊÏ䣬¼¤»î2G¿Õ¼ä£¡£¨ http://mail.sina.com.cn/chooseMode.html £© > >=================================================================== >½Ãñɱ¶¾Èí¼þKV2005´´Î´Öª²¡¶¾Ö÷¶¯·ÀÓùг±Á÷ (http://ad4.sina.com.cn/wx/ads/jiangminzhuiyu88.html) > > > Best Regards, Pratik -- Pratik Desai Graduate Student UMBC Department of Mechanical Engineering Phone: 410 455 8134