Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!x5g2000yqk.googlegroups.com!not-for-mail
From: Alexander <alexander.erlich@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Creating a movie with varying time steps
Date: Fri, 12 Jun 2009 07:31:40 -0700 (PDT)
Organization: http://groups.google.com
Lines: 42
Message-ID: <acdeff32-2db5-4edb-9ac5-780df805631e@x5g2000yqk.googlegroups.com>
References: <54d79ffd-aeb6-4244-ac04-445c12c94c06@z7g2000vbh.googlegroups.com> 
	<h0r3g5$rvj$1@fred.mathworks.com> <749aa82c-1702-4c71-b5c2-209488908cee@h11g2000yqb.googlegroups.com> 
	<h0rt9a$6ue$1@fred.mathworks.com>
NNTP-Posting-Host: 84.137.242.180
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1244817100 4583 127.0.0.1 (12 Jun 2009 14:31:40 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Fri, 12 Jun 2009 14:31:40 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: x5g2000yqk.googlegroups.com; posting-host=84.137.242.180; 
	posting-account=H4StzgoAAAB6i5sBDFPlaOTd7qBlZoph
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.10) 
	Gecko/2009042513 Ubuntu/8.04 (hardy) Firefox/3.0.10,gzip(gfe),gzip(gfe)
Xref: news.mathworks.com comp.soft-sys.matlab:546914


Thanks a lot Steve,

it makes sense :-)

It would have taken me ages to figure this out myself, I didn't know
about deval! Now, with a movie of let's say 20fps, I can use deval to
obtain intervals of 1/20th of a second and render the movie! This
method will probably enable me to make my computer render a movie of
60s for three hours or so, hopefully making it both correct and
optically refined!

Thanks!

Alexander

On Jun 11, 11:35 pm, "Steven Lord" <sl...@mathworks.com> wrote:
> "Alexander" <alexander.erl...@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
> sl...@mathworks.com