MathGroup Archive 2007

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

Search the Archive

Re: change filename automatically in Export Command

  • To: mathgroup at smc.vnet.net
  • Subject: [mg73844] Re: change filename automatically in Export Command
  • From: albert <awnl at arcor.de>
  • Date: Fri, 2 Mar 2007 06:22:21 -0500 (EST)
  • References: <es6df0$s3h$1@smc.vnet.net>

Hi,

> I want to name my files as a1.png a2.png a3.png ....a1000.png
> each time I use the following command
> Export["filename",aa1,"PNG"]
> 
> i need to change filename by hand is there a way of doing it
> automatically=

of course there is, actually there are plenty. This is one simple
possibility to create 10 files with the plots of x^n:

glist=Table[Plot[x^n,{x,0,1}],{n,1,10}];

Do[Export["plot"<>ToString[n]<>".png",glist[[n]]],{n,1,10}];

hth,

albert
 
> 
> 
> Many Thanks



  • Prev by Date: Interrupt Service Routines in Mathematica v.5.2?
  • Next by Date: The Mathematica equivalent of Cons (as in Lisp)?
  • Previous by thread: change filename automatically in Export Command
  • Next by thread: Re: change filename automatically in Export Command