M-File Help: circle

M-File Help: circle | View code for circle

# circle

Compute points on a circle

circle(C, R, opt) plots a circle centred at C (1x2) with radius R on the current axes.

x = circle(C, R, opt) is a matrix (2xN) whose columns define the coordinates [x,y] of points around the circumferance of a circle centred at C (1x2) and of radius R.

C is normally 2x1 but if 3x1 then the circle is embedded in 3D, and x is Nx3, but the circle is always in the xy-plane with a z-coordinate of C(3).

## Options

'n', N | Specify the number of points (default 50)

© 1990-2014 Peter Corke.