FEATool Multiphysics
v1.16.1
Finite Element Analysis Toolbox

LINEGRID Generate 1D line grid.
[ GRID ] = LINEGRID( P, XMIN, XMAX ) Generates a regular 1D line grid with coordinates in P. If P is an integer scalar {P=10 per default} P equally spaced cells will be generated on a line spanning XMIN and XMAX. If the optional arguments (only used if P is a scalar) XMIN and XMAX are omitted they default to 0 and 1 respectively.
grid = linegrid();
grid = linegrid( 25, 0.5, 0.5 );
p = logspace(2,2,11); grid = linegrid( p );