Borrar filtros
Borrar filtros

Embed Matlab movies into Latex

4 visualizaciones (últimos 30 días)
Daniel Wells
Daniel Wells el 15 de Sept. de 2012
Respondida: jaykrushna Patel el 10 de Feb. de 2018
I am having a difficult time embedding a movie made with Matlab (via the use of getframe and movie2avi) into Latex. The files created by Matlab are not readable by Quicktime, it seems, although I can get them to play in VLC. Does anyone have any clear way on how to do this?

Respuestas (1)

jaykrushna Patel
jaykrushna Patel el 10 de Feb. de 2018
I am using different approach..it may not be the best approach to add the movies in latex as resulting PDFs size go much higher.
save the movie as images the .jpeg file by getframe or print command frame by frame instead of generating the movie .avi.
and use \usepackage{animate} in latex to add the movie. here is the code that i use.
\begin{figure}[H]
\centering
\animategraphics[loop,label=label1,poster=last,width=\linewidth]{3}{name of image}{start no}{end no}
\mediabutton[
jsaction={if(anim.label1.isPlaying)
anim.label1.pause();
else
anim.label1.playFwd();
}
]{\fbox{Play/Pause}}
\caption{caption as needed}
\end{figure}

Categorías

Más información sobre Printing and Saving en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by