New project, new things to learn in Matlab, new problems. My previous (and first) project in Matlab led to an article which is in the peer review process now. Thanks to just 9 questions of me in this forum. Much appreciated, very much!
See attached picture made with plot3. Hold is on. It shows a highjump bar and something going over it. Hold leads to all 'frames' shown. With hold of the bar disappears and grid is invisible and axes are not fixed.
In fact I want this as a movie, with the bar, grid and axis shown and the thing moving over it. I've read and reread the documentation of getframe but seem to miss the point.
After calculation of x,y,z I do
plot3
and immediately after it
film=getframe.
But nothing happens and movie(film) does not know 'film'.
[EDITED, Jan, moved from section for answers]
Code:
while (t<2.4*ta) .......calculation of poitns (xp,yp,zp)...... end plot3(xp, yp, zp, 'o'); film=getframe; t=t+dt;endmovie(film,5)
Plot3 gives the correct picture, as attached to my previous question. But then nothing happens. Documentation says: "movie(M,N) plays the movie N times." How?
Best Answer