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')
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文档中查看