matlab 动态图drawnow函数

来源:互联网 发布:饮用水国家标准数据 编辑:程序博客网 时间:2024/05/22 07:54
 t = 0:pi/100:2*pi;
y = exp(sin(t));
h = plot(t,y,'YDataSource','y');
for k = 1:0.01:10
   y = exp(sin(t.*k));
   refreshdata(h,'caller')

   dr

具体可以在matlab中help文档中查看

0 0