M-File Help: mkgrid View code for mkgrid

mkgrid

Create grid of points

p = mkgrid(d, s, options) is a set of points (3 x dˆ2) that define a DxD planar grid of points with side length s. The points are the columns of p. If d is a 2-vector the grid is d(1)xD(2) points. If s is a 2-vector the side lengths are s(1)xS(2).

By default the grid lies in the XY plane, symmetric about the origin.

Options

'T', T the homogeneous transform T is applied to all points, allowing the plane to be translated or rotated.

 

© 1990-2012 Peter Corke.