MathGroup Archive 2008

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

Search the Archive

Re: Automating file names in exporting data

  • To: mathgroup at
  • Subject: [mg92540] Re: Automating file names in exporting data
  • From: Alexei Boulbitch <Alexei.Boulbitch at>
  • Date: Fri, 3 Oct 2008 06:42:11 -0400 (EDT)


I have a table of data with and I want to write them to different
files with associated file names
where <i> is the label for the column.

My question is how do I write the Export command so that I can iterate
the name of the file with For loop for example.

thanks in advance


Assume that you created a list of graphics entitled graphicsarray in Mathematica.
Try this:

For[i = 1, i <= Dimensions[graficsarray][[1]], i++,
 Export["D:\Name_of_a_file" <> ToString[i] <> ".bmp",
  graficsarray[[i]], ImageSize -> {500, 100}]]

I hope it helps.

Alexei Boulbitch, Dr., Habil.
Senior Scientist

ZAE Weiergewan
11, rue Edmond Reuter
L-5326 Contern

Phone: +352 2454 2566
Fax:   +352 2454 3566


This e-mail may contain trade secrets or privileged, undisclosed or otherwise confidential information. If you are not the intended recipient and have received this e-mail in error, you are hereby notified that any review, copying or distribution of it is strictly prohibited. Please inform us immediately and destroy the original transmittal from your system. Thank you for your co-operation.

  • Prev by Date: Re: How do I create my own color gradient?
  • Next by Date: could not get Simplified form
  • Previous by thread: Re: Automating file names in exporting data
  • Next by thread: Re: Automating file names in exporting data