0

How can I export this code:

Manipulate[Plot[a*Cos[2 Pi*x]*Exp[-(10^2)/x^2], {x, 0, 10}], {a, 1, 10}]

As a .gif that walks trough the values for $a$?

Looper
  • 287
  • 1
  • 6

1 Answers1

0

Do something like this

pe = Flatten@
       Table[Manipulate[
         Plot[a*Cos[2 Pi*x]*Exp[-(10^2)/x^2], {x, 0, 10}], {{a, m1}, 1, 
          10}], {m1, 1, 10}];

Export["C:/tcdata/file.gif", pe]
zhk
  • 11,939
  • 1
  • 22
  • 38