CIRCLE_ARC_GRID is a MATLAB library which calculates a grid of points equally spaced along a circular arc.
The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.
CIRCLE_ARC_GRID is available in a C version and a C++ version and a FORTRAN77 version and a FORTRAN90 version and a MATLAB version.
BALL_GRID, a MATLAB library which computes grid points that lie inside a 3D ball.
CIRCLE_GRID, a MATLAB library which computes grid points that lie inside a circle.
ELLIPSE_GRID, a MATLAB library which computes grid points that lie inside an ellipse.
ELLIPSOID_GRID, a MATLAB library which computes grid points that lie inside a 3D ellipsoid.
TETRAHEDRON_GRID, a MATLAB library which computes a tetrahedral grid of points.
TRIANGLE_GRID, a MATLAB library which computes a triangular grid of points.
ARC is a set of 10 equally spaced points from 0 to 90 degrees, on a circle of radius 2 centered at (5,5).
PENTAGON is a set of 6(!) equally spaced points from 0 to 360 degrees. This is the easiest way to get a pentagon, but you should really edit the file and remove the last point, since it repeats the first one. The alternative is to specify that the angles range from 0 to 288 degrees!
You can go up one level to the MATLAB source codes.