ine</a>(x, n, dn);
0396 y = <a href="runline.html" class="code" title="function y_line=runline(y,n,dn)">runline</a>(y, n, dn);
0397 
0398 <span class="comment">%Calculate polar coords and velocity.</span>
0399 r = sqrt(x.^2+y.^2);
0400 theta = atan2(y,x);
0401 
0402 vx = fps*gradient(x);
0403 vy = fps*gradient(y);
0404 v = sqrt(vx.^2+vy.^2);
0405 vtheta = atan2(vy,vx);
0406 
0407 clear handles.x;
0408 clear handles.y;
0409 <span class="comment">%save smooth data to handles to be used by other GUI functions<