Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

This question already has an answer here:

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?

share|improve this question

marked as duplicate by Mr.Wizard Jan 30 at 14:13

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1  
I'm not sure if it wil be ok, second argument for export gifs should be a list of images. You can try Rasterize/@(MatrixForm/@{a,b,c,d}). Ok, I've tried, Rasterize is redundant. Export[..., MatrixForm/@{a,b,c,d}] will work. –  Kuba Jan 27 at 20:35
    
How to export animation as gif - duplicate? and related source of useful links how to create animation –  Kuba Jan 27 at 20:41
    
I have marked this one as a duplicate since the source of the problem is now apparent. As you can see, including a self-contained example (like your recent question) is more likely to produce correct answers. –  Mr.Wizard Jan 30 at 14:13

2 Answers 2

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.

share|improve this answer

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

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.