1

I am trying to export an animated gif to my desktop but when I do so and open it, the image doesn't move. I've tried with avi and it works.The only reason that I'm exporting as a gif is to the incorporate it into Beamer. Does avi work just as well?

Export["N:\\new.gif",ListAnimate[{a // MatrixForm, b // MatrixForm, c // MatrixForm, 
       d // MatrixForm}, 1]]

Is there anything wrong in the input for this to happen?

Dr. belisarius
  • 115,881
  • 13
  • 203
  • 453
user32462
  • 161
  • 2

2 Answers2

3

I think that your problem cames from bad use of Export[ ].

Export's second argument must be a list, and in your code it's not.

Arcotick
  • 629
  • 3
  • 13
2

Here's one possibility:

a = RandomInteger[{0, 10}, {5, 5}];
b = RandomInteger[{0, 10}, {5, 5}];
arrays = {Image[ArrayPlot[a]], Image[ArrayPlot[b]]};
Export["arrays.gif", arrays]

enter image description here

bill s
  • 68,936
  • 4
  • 101
  • 191