Home > General-Functions > Graphics > plot_circle.m

plot_circle

PURPOSE ^

% plot circle.

SYNOPSIS ^

function h = plot_circle(xo,yo,r, fmt, varargin)

DESCRIPTION ^

% 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

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

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

Generated on Sat 21-Jul-2018 20:56:10 by m2html © 2005