Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!news2.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!newsfe02.iad.POSTED!7564ea0f!not-for-mail
From: Walter Roberson <roberson@hushmail.com>
Organization: Canada Eat The Cookie Foundation
User-Agent: Thunderbird 2.0.0.17 (Windows/20080914)
MIME-Version: 1.0
Newsgroups: comp.soft-sys.matlab
Subject: Re: Export matlab animation to avi
References: <gdq8qd$862$1@fred.mathworks.com> <Jb2Mk.5938$UD6.4434@newsfe07.iad> <gdqogq$mri$1@fred.mathworks.com> <gdqprt$ak6$1@fred.mathworks.com> <gdthb9$qj6$1@fred.mathworks.com>
In-Reply-To: <gdthb9$qj6$1@fred.mathworks.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 24
Message-ID: <QXkNk.986$o57.891@newsfe02.iad>
NNTP-Posting-Host: 24.79.146.116
X-Complaints-To: internet.abuse@sjrb.ca
X-Trace: newsfe02.iad 1225120624 24.79.146.116 (Mon, 27 Oct 2008 15:17:04 UTC)
NNTP-Posting-Date: Mon, 27 Oct 2008 15:17:04 UTC
Date: Mon, 27 Oct 2008 10:17:21 -0500
Xref: news.mathworks.com comp.soft-sys.matlab:497453


Peng Lei wrote:
> 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?

When you say "record the process above", do you mean as in the movie would show the
pointer moving over and show the click on the first button, show the appearance 
of the panels and axes, show the cursor moving over and clicking on the second button,
and so on? A sort of video record of "here is how to do this procedure" ?

If so, then you would need a second instance of matlab running, and that second
instance would have to be using getframe() and taking advantage of the fact that
when you use getframe() then in -some- configurations what is captured can be
whatever happens to be in that part of the screen at the time (e.g., if a
screen-saver had fired up, it might capture the screen-saver instead of the
matlab image.) This is, naturally, not very reliable -- the more so because the
two copies of matlab are going to be competing for the CPU.

If you want to make a movie of the -use- of a matlab program, I would recommend
that you do not create the movie in matlab itself, that you instead find some
screen capturing software appropriate for your operating system.