|
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
|