pan>
0127         <span class="comment">%large number should do, and if you choose an incorrect threshold,</span>
0128         <span class="comment">%you can use the CleanData function to fix this.</span>
0129         <span class="keyword">if</span> (frame~=StartFrame)
0130             <span class="keyword">if</span> (sqrt((x_raw-x(end))^2+(y_raw-y(end))^2) &gt;= 100)
0131                 x_raw = x(end);
0132                 y_raw = y(end);
0133             <span class="keyword">end</span>
0134         <spa