% Handles x=linspace(0,10); % Set up x y=x.^2; % Calculate y h =plot(x,y); % draw plot hold on % Put hold on so things can be added % Next put a marker at the origin blobhandle = plot(0,0,'o','markersize',10,'markerfacecolor','k'); for k2 = 1:length(x) set(blobhandle,'Xdata',x(k2),'Ydata',y(k2)) % Move marker to next x,y point. pause(.05) % Wait 50 millisec. end