Re: hwo to export data to file
- To: mathgroup at smc.vnet.net
- Subject: [mg59553] Re: hwo to export data to file
- From: albert <awnl at arcor.de>
- Date: Fri, 12 Aug 2005 00:08:07 -0400 (EDT)
- References: <ddf67c$ost$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Hi, > 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 Look at Export, depending on the version you use there are several possibilities, among them "CSV" (comma separated values) which most other programs should be able to import, especially since you can control the details of the CSV with options: Export["test.csv",{{1.3332, 2.5, 3.12,5.5},{2.5,7.8,9.90,2.47894}},"CSV"] > 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. not sure what you are looking for, but maybe Evaluate is doing what you want. But it will help for FindRoot only, since only FindRoot has the Attribute HoldAll. Example: FindRoot[Evaluate[equation],{x,0.3}] Albert