4

I know that you can implement movies into your LaTeX document, but I wanted to know is there a way to implement moving graphics after source code is compiled in Matlab?

This questions can really become a wiki and can be broadened to other systems such as: Maple, Mathematica, and so on.

2
  • Which kind (file format) of graphics do you have in mind? Commented Oct 6, 2011 at 14:22
  • Not quite sure, I have a .m file, and I have written up some code and plotted the results all with a for loop. So, the plots are constantly being updated with array values and this makes the plots moves in the figure window when the file is ran until the array within the for loop has reached the max value. How could I get the graphics to move with the same behavior in a (La)Tex document. Maybe for a better visualization, here is a example of what the graphics do below. en.wikipedia.org/wiki/Convolution Commented Oct 7, 2011 at 9:03

1 Answer 1

1

The animate package should do the job. It is assumed that the PDF frames are inside one big PDF document, one frame per page. Here is an example:

% playing at 12 frames per second
\animategraphics{12}{name-of-animation-pdf-file}{}{}

There is a dedicated tutorial showing how to include a series of PDF frames generated by any software including Matlab. The tutorial is targeted to graphics produced by TikZ using an intermediate PDF file.

There are some nice examples that show animated plots drawn by TikZ, including one that demonstrates convolution.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.