M-File Help: circle View code for circle

circle

Compute points on a circle

circle(C, R, opt) plot a circle centred at C with radius R.

x = circle(C, R, opt) return an Nx2 matrix whose rows define the coordinates [x,y] of points around the circumferance of a circle centred at C 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-2012 Peter Corke.