line_grid, a MATLAB code which generates a grid of points over the interior of a line segment in 1D.
The 1D line segment is the set of points X such that:
A <= X <= B
A set of parameters is specified:
The centering options allow the user to control the centering of the equally spaced points. Assume A = 0 and B = 1. Then, using N = 4, the centering options will produce 4 equally spaced points as follows:
The information on this web page is distributed under the MIT license.
line_grid is available in a C version and a C++ version and a Fortran90 version and a MATLAB version and an Octave version and a Python version.
matlab_grid, a MATLAB code which generates a regular grid of points inside a variety of regions in one, two, three or many dimensions.