Path: news.mathworks.com!not-for-mail
From: "Peng Lei" <penglei@uwm.edu>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Export matlab animation to avi
Date: Thu, 23 Oct 2008 20:58:02 +0000 (UTC)
Organization: University of Wisconsin-Milwaukee
Lines: 12
Message-ID: <gdqogq$mri$1@fred.mathworks.com>
References: <gdq8qd$862$1@fred.mathworks.com> <Jb2Mk.5938$UD6.4434@newsfe07.iad>
Reply-To: "Peng Lei" <penglei@uwm.edu>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1224795482 23410 172.30.248.37 (23 Oct 2008 20:58:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 23 Oct 2008 20:58:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1565821
Xref: news.mathworks.com comp.soft-sys.matlab:496973


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,
Z = peaks; surf(Z); 
axis tight
set(gca,'nextplot','replacechildren');
% Record the movie
for j = 1:20 
    surf(sin(2*pi*j/20)*Z,Z)
    F(j) = getframe;
end
% Play the movie twenty times
movie(F,20) 
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?