I've constructed a visualisation of the solution of an equation over time as a sequence of MatrixPlots and I'd like to export this as a movie for use in a presentation, but whatever file extension I try, I either get an error message(adsbygoogle = window.adsbygoogle || []).push({});

(e.g. "The Export element \!\(\"GraphicsList\"\) contains a malformed data \

structure and could not be exported to \!\(\"AVI\"\) format.")

or I get an image of the word "Null".

I've constructed an easier example to demonstrate:

s = NDSolve[{x'[t] == -y[t] - x[t]^2, y'[t] == 2 x[t] - y[t]^3,

x[0] == y[0] == 1}, {x, y}, {t, 30}]

Movie := Module[{cc, cmax, list, framerate, nn, minscale, maxscale},

nn = 100;

minscale = -1;

maxscale = 2;

framerate = 15;

cmax = 2 framerate;

list = {};

Monitor[

For[cc = 1, cc <= cmax, cc = cc + 0.5,

Pause[1/framerate];

list = Table[First[Evaluate[y[cc] /. s]], {i, n}];];,

MatrixPlot[{list}, Frame -> None, ColorFunctionScaling -> False,

ColorFunction -> (Blend[{{minscale, Black}, {maxscale,

Green}}, #] &), AspectRatio -> .1, ImageSize -> 1000]]]

Then I've been trying variants on Export["example.avi",Movie]

Thanks for your help

**Physics Forums - The Fusion of Science and Community**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Mathematica: Export sequence of MatrixPlots

Loading...

Similar Threads - Mathematica Export sequence | Date |
---|---|

Mathematica Cannot do the integral of the Hyper-geometric function? | Mar 11, 2018 |

Mathematica Cannot Plot This Function in Mathematica | Feb 26, 2018 |

Mathematica While Loop in Mathematica | Feb 25, 2018 |

Mathematica: How to export notebook to MS word | Jun 11, 2012 |

Mathematica Export to PDF problem | Feb 22, 2011 |

**Physics Forums - The Fusion of Science and Community**