DRAWPLATFORM Draw a rectangular platform with a given size.
drawPlatform(PLANE, SIZ) draws a rectangular platform with the
dimensions specified by SIZ. If SIZ contains only one value instead of
two the platform will be quadratic.
drawPlatform(...,'PropertyName',PropertyValue,...) sets the value of
the specified patch property. Multiple property values can be set with
a single statement. See function patch for details.
drawPlane3d(AX,...) plots into AX instead of GCA.
H = drawPlatform(...) returns a handle H to the patch object.
Example
p0 = [1 2 3];
v1 = [1 0 1];
v2 = [0 -1 1];
plane = [p0 v1 v2];
axis([-10 10 -10 10 -10 10]);
drawPlatform(plane, [7,3])
set(gcf, 'renderer', 'zbuffer');
See also
planes3d, createPlane, patch
Package: matgeom