When I run the following code to create a movie, the file is created with incorrect screen information when the axes contents are used to create the movie.
Z = peaks;surf(Z)axis tightset(gca,'nextplot','replacechildren');for j = 1:20 surf(sin(2*pi*j/20)*Z,Z) F(j) = getframe(gca);endmovie2avi(F,'testcon1.avi','compression','Indeo5');
However, if the figure contents are used instead, the movie is generated correctly.
Best Answer