Path: news.mathworks.com!not-for-mail
From: "Steven Lord" <slord@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Creating a movie with varying time steps
Date: Thu, 11 Jun 2009 17:35:03 -0400
Organization: The MathWorks, Inc.
Lines: 25
Message-ID: <h0rt9a$6ue$1@fred.mathworks.com>
References: <54d79ffd-aeb6-4244-ac04-445c12c94c06@z7g2000vbh.googlegroups.com> <h0r3g5$rvj$1@fred.mathworks.com> <749aa82c-1702-4c71-b5c2-209488908cee@h11g2000yqb.googlegroups.com>
Reply-To: "Steven Lord" <slord@mathworks.com>
NNTP-Posting-Host: lords.dhcp.mathworks.com
X-Trace: fred.mathworks.com 1244756074 7118 144.212.105.187 (11 Jun 2009 21:34:34 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 11 Jun 2009 21:34:34 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
X-RFC2646: Format=Flowed; Original
Xref: news.mathworks.com comp.soft-sys.matlab:546718



"Alexander" <alexander.erlich@gmail.com> wrote in message 
news:749aa82c-1702-4c71-b5c2-209488908cee@h11g2000yqb.googlegroups.com...
> Thank you Steve,
>
> I will try that. But I still have a question: Suppose I had equally-
> spaced time steps. Getframe won't know how long one time step is, will
> it? It might play the movie much faster than it really (=as given by
> the solution of the ODE) is, or slower, probably depending on my
> computer. If I'm right with that problem, what could I do?

You're correct that GETFRAME doesn't know how long one time step is. 
Technically, MOVIE and AVIFILE don't know how long one time step is either. 
But both MOVIE and AVIFILE know how many frames to show per second, and 
that's just as good, isn't it?

http://www.mathworks.com/access/helpdesk/help/techdoc/ref/movie.html

http://www.mathworks.com/access/helpdesk/help/techdoc/ref/avifile.html

-- 
Steve Lord
slord@mathworks.com