function circle(h,k,r)
%h is x position of the center
%k is y position of the center
%r is radius

theta = 0:0.1:2*pi;
x = r.*sin(theta)+h;
y = r.*cos(theta)+k;

plot(x,y,'r-')
drawnow
