画动态图

来源:互联网 发布:开淘宝充值店赚钱吗 编辑:程序博客网 时间:2024/06/09 17:35
for i=0:pi/20:2*pi y=sin(i); plot(i,y,'r+') hold on drawnow;pause(1)end 每增加一个点即时画进去