使用
暂停()
t = linspace(0, 2π,20);
x = 5 * cos (t);
y = 3 * sin (t);
h =情节(5 0“r”);
线(x, y)
为i = 1:20
集(h,“xdata”x(我))
集(h,“ydata”y (i))
暂停(0.5)
结束