fig=figure; set(fig,'DoubleBuffer','on'); set(gca,'xlim',[-80 80],'ylim',[-80 80],... 'NextPlot','replace','Visible','off') mov = avifile('1.avi') s=0.5; x1=0; % 确定起始点横坐标x1及其增量 n= 10; % 确定动画总帧数 for k = 1:n %x1