The vertices of the polygon are specified by triples of components of X , Y , and Z . If necessary, the polygon is closed by connecting the last vertex to the first. 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 X , Y , or 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.
Examples Fill four random triangles with color.
Copyright 1994 by The MathWorks, Inc.