FEATool  v1.6
Finite Element Analysis Toolbox
 All Files Functions Pages
linegrid.m File Reference

Description

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 XMIN and XMAX are omitted they default to 0 and 1 respectively.

Examples
1) 10 grid cells on a line spanned by [ 0..1 ]
  grid = linegrid();
2) 25 grid cells on a line spanned by [ -0.5..0.5 ]
  grid = linegrid( 25, -0.5, 0.5 );
See also
BLOCKGRID, CIRCGRID, CYLGRID, HOLEGRID, RECTGRID, RINGGRID, SPHEREGRID.
Generated fields of grid: