Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Matlab Movies
Date: Mon, 10 Nov 2008 18:00:19 +0000 (UTC)
Organization: Penn State University
Lines: 21
Message-ID: <gf9srj$pc4$1@fred.mathworks.com>
References: <gf7ft5$p2s$1@fred.mathworks.com> <gf7r39$6mk$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1226340019 25988 172.30.248.35 (10 Nov 2008 18:00:19 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 10 Nov 2008 18:00:19 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1588143
Xref: news.mathworks.com comp.soft-sys.matlab:500032


"a programmer" <no@spam.com> wrote in message <gf7r39$6mk$1@fred.mathworks.com>...
> "William Kong" <schoolsofthought@gmail.com> wrote in message <gf7ft5$p2s$1@fred.mathworks.com>...
> > I am using Matlab to make some movies of simulations I am running. There are times when the movie feature works and there are times it doesn't. When I say it doesn't work, I do not mean a  movie does not show up. All the plots show up to allow me to do screen captures to create a movie and it looks fine. The problem is that when the movie ends, no movie file is created and saved. In fact, at the end of the movie I get this error message: 
> > 
> > ??? Failed to open file.
> > Error in ==> avifile.avifile at 171
> >   aviobj.FileHandle = avi('open',filename);
> > Error in ==> movie2avi at 63
> > avimov = avifile(filename,varargin{:});
> > Error in ==> SRDMovie at 99
> > movie2avi(G, 'SRD_movie'); 
> > 
> > Sometimes I think the complexity (not length) of the simulation determines whether or not a movie file is created. When I simulate a "simple" scenario, everything works great and I get an avi file in the end. When I run something more complex, the movie craps out on me and I get the error message. However, the problem has also come up during simple simulations too. So I actually have no idea what's going wrong. I have also tried messing with the figure window size (I like to use large windows for better resolution), and that sometimes works if I make the window smaller.
> > 
> > Anyone have some suggestions as to what I can do to make this movie stuff work? It feels like this movie function is not able to do screen captures of plots with a lot of information or something.
> >
> Take a look at mpgwrite.dll in the FEX. 

Could you elaborate more on this? What is FEX?

Thanks