The command
Table[Polt[Sin[k x],{x,1,10}],{k,1,30}]
generates a list of graphics. I want to export each list item as an individual jpg file, named according to the order of appearance in the list. How can I do this?
Thanks in advance.
The command
Table[Polt[Sin[k x],{x,1,10}],{k,1,30}]
generates a list of graphics. I want to export each list item as an individual jpg file, named according to the order of appearance in the list. How can I do this?
Thanks in advance.
Many ways to do this.
SetDirectory[NotebookDirectory[]];
data = Table[ Plot[Sin[k x], {x, 1, 10}], {k, 1, 3}];
Export[ToString[#] <> ".jpg", data[[#]]] & /@ Range[Length[data]]

Or you can get a little fancy, and generate the names while building the table itself
data = Table[ {ToString[k] <> ".jpg", Plot[Sin[k x], {x, 1, 10}]}, {k,1, 3}];
Export[First[#], Last[#]] & /@ data
Have fun coming up with more ways.
MapIndexed/Do$+$Export? – Kuba Nov 16 '13 at 10:21