ball_grid


ball_grid, a MATLAB code which generates a grid of points over the interior of an arbitrary ball in 3D.

The library allows the user to define an arbitrary ball by choosing its radius and center. The user also choose N, the number of subintervals into which a horizontal radius line will be subdivided. It then returns the gridpoints defined by that choice.

Licensing:

The information on this web page is distributed under the MIT license.

Languages:

ball_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.

Related Data and Programs:

ball_grid_test

ball_integrals, a MATLAB code which defines test functions for integration over the interior of the unit ball in 3D.

ball_monte_carlo, a MATLAB code which applies a Monte Carlo method to estimate integrals of a function over the interior of the unit ball;

matlab_grid, a MATLAB code which generates a regular grid of points inside a variety of regions in one, two, three or many dimensions.

Source Code:


Last revised on 29 November 2018.