new_grid(3m)

NAME
new_grid - Build a regular grid

SYNOPSIS
grid = new_grid(xmin, xmax, n )

DESCRIPTION
This Matlab function will create a regular grid. Extreme grid values are included in the number of grid points. Hence, n must be at least 2.

PARAMETERS

xmin
    Minimum value for grid.

xmax
    Maximum value for grid.

n   Number of points (including xmin and xmax).

RETURNS

grid
    Vector with the new grid points.

AUTHORS
Pierre Jaccard, Geophysical Institute, University of Bergen, 1999