使用
暂停()
T = linspace(0,2*pi,20);
X = 5*cos(t);
Y = 3* sint;
H = plot(5,0,“r”);
线(x, y)
为I = 1:20
集(h,“xdata”x(我))
集(h,“ydata”y (i))
暂停(0.5)
结束