MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

RE: how to save each raw of data to separate file?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg80327] RE: [mg80317] how to save each raw of data to separate file?
  • From: "David Annetts" <davidannetts at aapt.net.au>
  • Date: Sat, 18 Aug 2007 05:25:59 -0400 (EDT)
  • References: <200708170553.BAA00334@smc.vnet.net>

Hi Arkadiusz

> Say I have a list of sublists
> b= {{a1,a2,a3},{b1,b2},{c1,c2,c3,c4}}
> 
> How can I automatically save b[[1]], b[[2]] and b[[3]] to 
> three separate files?
> 
> How should I correct the below expression to let it work?
> 
> Table[b[[i]]>>i, {i,1,Length[b]}]

Reading the online documentation for Put[] would be a start ....

	Put[b[[#]], "b_" <> ToString@#] & /@ Range[Length@b]

Export might be a better bet, depending upon what you need the expressions
for.

Regards,

Dave.


  • Prev by Date: Re: Graphics output in Mathematica 6 functions ?
  • Next by Date: Re: 3DPlot in Mathematica 6
  • Previous by thread: how to save each raw of data to separate file?
  • Next by thread: Re: how to save each raw of data to separate file?