Re: How to export txt files with variable name &
- To: mathgroup at smc.vnet.net
- Subject: [mg72585] Re: How to export txt files with variable name &
- From: Bill Rowe <readnewsciv at sbcglobal.net>
- Date: Thu, 11 Jan 2007 02:56:32 -0500 (EST)
On 1/9/07 at 7:13 AM, martin465 at sympatico.ca (Cham) wrote: >I need to use the operation >D0[Export["Coord_n.txt", Coord[n], "Table"], {n, 0, 3}] >with a variable name. I want Mathematica to write down several >files with names likes this (as much names as there are values for >the variable "n") : >Coord_0.txt, Coord_1.txt, Coord_2.txt, Coord_3.txt >How can I do that ? Any number of ways. Here is a one line functional solution Export["Coord_"<>ToString[#]<>".txt","Table"]&/@Range[0,3] -- To reply via email subtract one hundred and four