Mathematica 9 is now available
Student Support Forum
Student Support Forum: 'creating a list of files' topicStudent Support Forum > General > "creating a list of files"

Next Comment >Help | Reply To Topic
Author Comment/Response
11/24/12 00:14am

Hi, I want to create a list of files to store different sets of data.
For example consider this list of plots

Table[Plot[i + x^2, {x, -1, 1}, AxesOrigin -> {0, 0}], {i, 0, 3}]

I want to export each plot to a separate .jpg file with a single command. Is there any command which allow mathematica to create files in sequential order. For example, if I use

Table[Export["a00*.jpg", Plot[i + x^2, {x, -1, 1}, AxesOrigin -> {0, 0}]], {i, 0, 3}]

it gives four files like

{"a00*.jpg", "a00*.jpg", "a00*.jpg", "a00*.jpg"}

What I want is to create four files like

{"a001.jpg", "a002.jpg", "a003.jpg", "a004.jpg"}

Thanks and regards,

URL: ,

Subject (listing for 'creating a list of files')
Author Date Posted
creating a list of files Sumit 11/24/12 00:14am
Re: creating a list of files jf 11/24/12 11:55am
Next Comment >Help | Reply To Topic