<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/238047</link>
    <title>MATLAB Central Newsreader - Export matlab animation to avi</title>
    <description>Feed for thread: Export matlab animation to avi</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Thu, 23 Oct 2008 16:30:05 -0400</pubDate>
      <title>Export matlab animation to avi</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/238047#607001</link>
      <author>Peng Lei</author>
      <description>I created a Matlab GUI animation but how can I export the whole process into avi format from matlab?&lt;br&gt;
Thanks</description>
    </item>
    <item>
      <pubDate>Thu, 23 Oct 2008 17:08:31 -0400</pubDate>
      <title>Re: Export matlab animation to avi</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/238047#607010</link>
      <author>Walter Roberson</author>
      <description>Peng Lei wrote:&lt;br&gt;
&amp;gt; I created a Matlab GUI animation but how can I export the whole process into avi format from matlab?&lt;br&gt;
&lt;br&gt;
movie2avi(), or avifile() and addframe()</description>
    </item>
    <item>
      <pubDate>Thu, 23 Oct 2008 20:58:02 -0400</pubDate>
      <title>Re: Export matlab animation to avi</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/238047#607054</link>
      <author>Peng Lei</author>
      <description>Thanks for the information, but I'm still confused about how to export the animation, ok, for example, from matlab help document I got the codes like this,&lt;br&gt;
Z = peaks; surf(Z); &lt;br&gt;
axis tight&lt;br&gt;
set(gca,'nextplot','replacechildren');&lt;br&gt;
% Record the movie&lt;br&gt;
for j = 1:20 &lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;surf(sin(2*pi*j/20)*Z,Z)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;F(j) = getframe;&lt;br&gt;
end&lt;br&gt;
% Play the movie twenty times&lt;br&gt;
movie(F,20) &lt;br&gt;
these codes make little animation run on a figure, but the point is how could it be export as avi file so that can be played by windows media player?</description>
    </item>
    <item>
      <pubDate>Thu, 23 Oct 2008 21:21:01 -0400</pubDate>
      <title>Re: Export matlab animation to avi</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/238047#607061</link>
      <author>Bruno Luong</author>
      <description>&quot;Peng Lei&quot; &amp;lt;penglei@uwm.edu&amp;gt; wrote in message &amp;lt;gdqogq$mri$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
but the point is how could it be export as avi file so that can be played by windows media player?&lt;br&gt;
&lt;br&gt;
movie2avi, movie2avi, movie2avi, movie2avi, movie2avi, movie2avi, movie2avi, movie2avi, movie2avi, movie2avi, movie2avi, movie2avi, movie2avi, movie2avi, movie2avi, movie2avi, movie2avi, movie2avi, movie2avi, movie2avi, movie2avi, movie2avi, movie2avi, movie2avi, movie2avi, movie2avi, movie2avi, movie2avi, movie2avi, movie2avi, movie2avi, movie2avi, movie2avi, movie2avi, movie2avi, movie2avi, movie2avi, movie2avi, movie2avi, movie2avi, movie2avi, movie2avi, movie2avi, movie2avi, movie2avi, movie2avi, movie2avi, movie2avi, ...&lt;br&gt;
&lt;br&gt;
Bruno</description>
    </item>
    <item>
      <pubDate>Fri, 24 Oct 2008 22:14:01 -0400</pubDate>
      <title>Re: Export matlab animation to avi</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/238047#607265</link>
      <author>Peng Lei</author>
      <description>Ok, I got your point, it can really export the animation to an avi video. But my case is more complicated than that. first I creat a GUI interface with 4 panels and 2 axes,  then I also made two pushbuttons on the GUI, click the first one, the background on panels and axes show up, click the second one, the progressing curve lines and moving images will show on the panels and axes. The matlab files contain one .M file and one .f file. Is it possible to record the process above to make it a avi file by matlab? If so, how?&lt;br&gt;
&lt;br&gt;
Thanks</description>
    </item>
    <item>
      <pubDate>Sat, 25 Oct 2008 19:36:46 -0400</pubDate>
      <title>Re: Export matlab animation to avi</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/238047#607312</link>
      <author>NZTideMan</author>
      <description>On Oct 25, 11:14 am, &quot;Peng Lei&quot; &amp;lt;peng...@uwm.edu&amp;gt; wrote:&lt;br&gt;
&amp;gt; Ok, I got your point, it can really export the animation to an avi video. But my case is more complicated than that. first I creat a GUI interface with 4 panels and 2 axes,  then I also made two pushbuttons on the GUI, click the first one, the background on panels and axes show up, click the second one, the progressing curve lines and moving images will show on the panels and axes. The matlab files contain one .M file and one .f file. Is it possible to record the process above to make it a avi file by matlab? If so, how?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Thanks&lt;br&gt;
&lt;br&gt;
Copy each panel, axis, figure, or whatever into a matrix using&lt;br&gt;
getframe.&lt;br&gt;
When you play the matrix back, you get a movie.&lt;br&gt;
I think you're looking for a complicated solution, when it's really&lt;br&gt;
quite simple.&lt;br&gt;
You need to clearly think what you want to show in the movie, then&lt;br&gt;
apply getframe appropriately.</description>
    </item>
    <item>
      <pubDate>Mon, 27 Oct 2008 15:17:21 -0400</pubDate>
      <title>Re: Export matlab animation to avi</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/238047#607532</link>
      <author>Walter Roberson</author>
      <description>Peng Lei wrote:&lt;br&gt;
&amp;gt; Ok, I got your point, it can really export the animation to an avi video. But my case is&lt;br&gt;
&amp;gt; more complicated than that. first I creat a GUI interface with 4 panels and 2 axes,  then&lt;br&gt;
&amp;gt; I also made two pushbuttons on the GUI, click the first one, the background on panels&lt;br&gt;
&amp;gt; and axes show up, click the second one, the progressing curve lines and moving images &lt;br&gt;
&amp;gt; will show on the panels and axes. The matlab files contain one .M file and one .f file. &lt;br&gt;
&amp;gt; Is it possible to record the process above to make it a avi file by matlab? If so, how?&lt;br&gt;
&lt;br&gt;
When you say &quot;record the process above&quot;, do you mean as in the movie would show the&lt;br&gt;
pointer moving over and show the click on the first button, show the appearance &lt;br&gt;
of the panels and axes, show the cursor moving over and clicking on the second button,&lt;br&gt;
and so on? A sort of video record of &quot;here is how to do this procedure&quot; ?&lt;br&gt;
&lt;br&gt;
If so, then you would need a second instance of matlab running, and that second&lt;br&gt;
instance would have to be using getframe() and taking advantage of the fact that&lt;br&gt;
when you use getframe() then in -some- configurations what is captured can be&lt;br&gt;
whatever happens to be in that part of the screen at the time (e.g., if a&lt;br&gt;
screen-saver had fired up, it might capture the screen-saver instead of the&lt;br&gt;
matlab image.) This is, naturally, not very reliable -- the more so because the&lt;br&gt;
two copies of matlab are going to be competing for the CPU.&lt;br&gt;
&lt;br&gt;
If you want to make a movie of the -use- of a matlab program, I would recommend&lt;br&gt;
that you do not create the movie in matlab itself, that you instead find some&lt;br&gt;
screen capturing software appropriate for your operating system.</description>
    </item>
  </channel>
</rss>

