0001 function h = plotCircle(x, y, r) 0002 hold on 0003 th = 0:pi/50:2*pi; 0004 xunit = r * cos(th) + x; 0005 yunit = r * sin(th) + y; 0006 h = plot(xunit, yunit); 0007 hold off 0008 end