Path: news.mathworks.com!newsfeed-00.mathworks.com!nlpi057.nbdc.sbc.com!prodigy.net!border1.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!h11g2000yqb.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: Thu, 11 Jun 2009 11:11:17 -0700 (PDT)
Organization: http://groups.google.com
Lines: 37
Message-ID: <749aa82c-1702-4c71-b5c2-209488908cee@h11g2000yqb.googlegroups.com>
References: <54d79ffd-aeb6-4244-ac04-445c12c94c06@z7g2000vbh.googlegroups.com> 
	<h0r3g5$rvj$1@fred.mathworks.com>
NNTP-Posting-Host: 84.137.241.143
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1244743877 7448 127.0.0.1 (11 Jun 2009 18:11:17 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Thu, 11 Jun 2009 18:11:17 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: h11g2000yqb.googlegroups.com; posting-host=84.137.241.143; 
	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)
Bytes: 2681
Xref: news.mathworks.com comp.soft-sys.matlab:546647


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?

Alexander

On Jun 11, 4:14 pm, "Steven Lord" <sl...@mathworks.com> wrote:
> "Alexander Erlich" <alexander.erl...@gmail.com> wrote in message
>
> news:54d79ffd-aeb6-4244-ac04-445c12c94c06@z7g2000vbh.googlegroups.com...
>
> > Hi there,
>
> > suppose I have a solution of a differential equation which I would
> > like to visualize with surf. The numerical solution tells me exactly
> > when to plot the object in which coordinates. Now, I would like to
> > create a movie out of these surf plots. I cannot use getframe, as it
> > does not enable me to consider the varying time steps. Is there
> > another way to do that?
>
> Solve the system of ODEs to generate a solution struct array (using the "sol
> = ..." syntax described in the help rather than the "[t, y] = ..." syntax.)
> Once you have the solution struct, use DEVAL to evaluate the solution at
> equally-spaced time steps.  Then create the movie from the surfaces created
> by the equally-timestep-spaced data.
>
> --
> Steve Lord
> sl...@mathworks.com