CatchMeStart - set(Aim_Line, 'xdata',Aim_pos(kk)*[1 1]);

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
% CatchMeStart.m % Cursor = [0 ;0 ]; pause(0.5); p tic t for k = Nshow+1:N set(Ball_Line,'xdata',Ball_pos(k)*[1 1]); set(Ball_Target,'xdata',Ball_pos(k)); set(Ball_Trace,'xdata',Ball_pos(k-Nshow+1:k)); kk = k-Nprvw; Aim_pos(kk) = Cursor(1); set(Aim_Spot, 'xdata',Aim_pos(kk));
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: set(Aim_Line, 'xdata',Aim_pos(kk)*[1 1]); set(Aim_Curve,'xdata',Aim_pos(kk-N1+1:kk)); pause(Tp); end e Te = toc Tc = Te/N - Tp; Tp = 10/N-Tc; T LastLine = Ball_pos(k)*[1 1]; LastBall = Ball_pos(k); LastCurve = Ball_pos(k-Nshow+1:k);...
View Full Document

Ask a homework question - tutors are online