From: asdf on
Hi, all, I got an error from the following program, what's wrong with
it?

mov=avifile('flipflop');
axis tight;
set(gca,'nextplot','replacechildren');
for j = 1:1000
plot(Z(j,1),Z(j,2),'ro','MarkerSize',10);
F(j) = getframe;
end
movie(F); % error here
mov=addframe(mov,F);
mov=close(mov);

Another question is that I want to preallocate the memory for F, how
should I do it?
F=zeros(1,1000) doesn't work.

thanks.