function m = RobotMovie(tq,loop) sfrobota(0,0,0,0,0); n=size(tq,2); if nargin<2 loop=1; end if loop>1 pau=1; else loop=1; pau=0; end while(loop>0) loop=loop-1; if pau sfrobota(tq(1,1),0,tq(1,2:n),2,0); % disp('The simulation is paused, press to continue') pau=0; % pause end tic t0=clock; lastt=tq(1,1); ii =[find(tq(1:size(tq,1)-1,1) ~= tq(2:size(tq,1),1))']; pos=get(1,'position'); set(gcf,'units','pixels','position',[pos(1:2),400,304]) % Max width = 400px, Maxheight = 304 mov=zeros(length(getframe(gcf)),length(ii)); j=1; for i=ii if (tq(i,1)