clf %clear plot plot(0,0),axis([-1,5,-1.5,1.5]),hold on for i=0:20 x=i/5; plot(x,sin(x),'*') pause(.1); end