well, you can hold on
during the frame drawing and hold off
at the end of the frame drawing. like
for frame=1:numframes
i=frame*10;
plot(cos(mod(y(i),2*pi)),sin(mod(y(i),2*pi)),'bo');
hold on % // here
plot(cos(mod(y(i,2),2*pi)) *1.1,sin(mod(y(i,2),2*pi))*1.15,'r*');
axis([-1.5 1.5 -1.5 1.5])
A(:,i)=getframe(fig1,winsize);
hold off % // and here
end
but in this case you can simply do
....
plot(cos(mod(y(i),2*pi)),sin(mod(y(i),2*pi)),'bo', ...
cos(mod(y(i,2),2*pi)) *1.1,sin(mod(y(i,2),2*pi))*1.15,'r*');