function drawCircle(r,x0,y0,line_style)
% drawCircle  Draw a circle in the (x,y) plane
%
% Synopsis:  drawCircle(r)
%            drawCircle(r,x0)
%            drawCircle(r,x0,y0)
%            drawCircle(r,x0,y0,line_style)
%
% Input:  r = radius of the circle
%         x0,y0 = (optional) x and y coordinates of center of the circle
%                 Default:  x0 = 0,  y0 = 0;
%         line_style = (optional) string used to specify the line style
%                      of the circle.  Default: line_style = '-' draw
%                      the circle with a solid line

if nargin<2, x0 = 0;  end
if nargin<3, y0 = 0;  end
if nargin<4, line_style = '-';  end

t = linspace(0,2*pi);
x = x0 + r*cos(t);
y = y0 + r*sin(t);
plot(x,y,line_style)

end