FEATool Multiphysics
v1.14
Finite Element Analysis Toolbox

GRIDSCALE Scale a grid.
[ GRID ] = GRIDSCALE( GRID, S ) Scaling a grid with the factors specified in S. S can either be a real array with constant scaling factors for each direction, for example S = [1 2 1] for a 2 times scaling in the ydirection. Alternatively, S can be a cell array with string expressions for the scaling factor.
grid = spheregrid(); grid = gridscale( grid, [2 1 1] );
grid = rectgrid(); grid = gridscale( grid, {'1(y>0.5).*(y0.5)' 1} );