fill3(X,Y,Z,C)fills the three-dimensional polygon defined by vectors
Zwith the color specified by
C. The vertices of the polygon are specified by triples of components of
Z. If necessary, the polygon is closed by connecting the last vertex to the first.
C is a single character string chosen from the list
'k', or a red-green-blue row vector triple,
[r g b], the polygon is filled with the constant specified color.
C is a vector the same length as
Z, its elements are scaled by
caxis and used as indices into the current colormap to specify colors at the vertices; the color within the polygon is obtained by bilinear interpolation in the vertex colors.
Z are matrices the same size,
fill3(X,Y,Z,C) draws one polygon per column. In this case,
C is a row vector for flat polygon colors, and
C is a matrix for interpolated polygon colors.
If any one of
Z is a matrix, and the others are column vectors with the same number of rows, the column vector arguments are replicated to produce matrices of the required size.
fill3(X1,Y1,Z1,C1,X2,Y2,Z2,C2,...) is another way of specifying multiple filled areas.
fill3 sets the patch object
FaceColor property to
interp, or a
ColorSpec depending upon the value of the
fill3 returns a column vector of handles to patch objects, one handle per patch. The
C parameters can be followed by parameter/value pairs to specify additional properties of the patches.
(c) Copyright 1994 by The MathWorks, Inc.