% plot circle. Usage: plot_circle( xo,yo,r, fmt) xo,yo: centre r: radius fmt: format string author J. meidow, FGAN-FOM 2004, Oct: initial code 2005, Jan.: varargs and doc. added
0001 %% plot circle. 0002 % 0003 % Usage: 0004 % plot_circle( xo,yo,r, fmt) 0005 % 0006 % xo,yo: centre 0007 % r: radius 0008 % fmt: format string 0009 % 0010 % author J. meidow, FGAN-FOM 0011 % 0012 % 2004, Oct: initial code 0013 % 2005, Jan.: varargs and doc. added 0014 function h = plot_circle(xo,yo,r, fmt, varargin) 0015 0016 if r > 0.0 0017 h = plot_ellipse([xo,yo,r,r,0.0],fmt); 0018 if nargin>4 0019 set(h,varargin{:}); 0020 end 0021 end