查看单个帖子
旧 2007-12-11, 20:11   #2
hezhg
初级会员
 
注册日期: 2007-12-06
帖子: 4
声望力: 0
hezhg 正向着好的方向发展
默认

t=0i/100:2*pi;
y=sin(t);
plot(t,y);
h=line('color',[1 0 0],'marker','.','markersize',40,'erasemode','xor');
n=length(t);
for i=1:n;
set(h,'xdata',t(i),'ydata',y(i));
drawnow;
pause(0.005)
end
hezhg 当前离线   回复时引用此帖