I use the following code to create a movie:
r = subplot(2,1,1) Z = peaks; surf(Z); axis tight set(gca,'nextplot','replacechildren'); s = subplot(2,1,2) Z = peaks; surf(Z); axis tight set(gca,'nextplot','replacechildren'); % Record the movie
for j = 1:20 axes(r) surf(sin(2*pi*j/20)*Z,Z) axes(s) surf(sin(2*pi*(j+5)/20)*Z,Z) F(j) = getframe(gcf); pause(.0333) end
When I play the movie using the following commands, the movie frames are clipped at the boundaries of the figure.
figure(2);movie(F,20);
Best Answer