开满天机
TCH(X,Y,C) adds the "patch" or filled 2-D polygon defined byvectors X and Y to the current axes. If X and Y are matrices ofthe same size, one polygon ("face") per column is added. Cspecifies the color of the face(s) ("flat" coloring), or thevertices ("interpolated" coloring), for which bilinear interpolationis used to determine the interior color of the polygon.For both vector or matrix X and Y, if C is a string, each faceis filled with 'color'. 'color' can be 'r','g','b','c','m','y','w', or 'k'. If C is a scalar it specifies the color of theface(s) by indexing into the colormap. A 1x3 vector C is alwaysassumed to be an RGB triplet specifying a color directly.For vector X and Y, if C is a vector of the same length, itspecifies the color of each vertex as indices into thecolormap and bilinear interpolation is used to determine theinterior color of the polygon ("interpolated" shading).When X and Y are matrices, if C is a 1xn, where n is the numberof columns in X and Y, then each face j=1:n is flat colored by thecolormap index C(j). Note the special case of a 1x3 C is alwaysassumed to be an RGB triplet ColorSpec and specifies the sameflat color for each face. If C is a matrix the same size as Xand Y, then it specifies the colors at the vertices as colormapindices and bilinear interpolation is used to color the faces.If C is 1xnx3, where n is the number of columns of X and Y,then each face j is flat colored by the RGB triplet C(1,j,:).If C is mxnx3, where X and Y are mxn, then each vertex(X(i,j),Y(i,j)) is colored by the RGB triplet C(i,j,:) and theface is colored using interpolation.PATCH(X,Y,Z,C) creates a patch in 3-D coordinates. Z must be thesame size as X and Y.PATCH returns a handle to a Patch object. Patches are childrenof AXES objects.The X,Y,C triple (X,Y,Z,C quad for 3-D) can be followed byparameter/value pairs to specify additional properties of thePatch. The X,Y,C triple (X,Y,Z,C quad for 3-D) can be omittedentirely, and all properties specified using parameter/valuepairs.Patch objects also support data specified using the propertiesFaces, Vertices, and FaceVertexCData (see the reference manualfor more information). These properties do not have a conveniencesyntax, but may be specified using param-value pairs. Patchdata specified as XData, YData, ZData, and CData is translatedand stored internally as Faces, Vertices, and FaceVertexCData, andthe original matrices are not stored. When GET is used to queryXData, YData, ZData, or CData, the returned value is computed bytranslating from Faces, Vertices, and FaceVertexCData.GET(H), where H is a patch handle, displays a list of patchobject properties and their current values. SET(H) will displaya list of patch object properties and legal property values.你仔细看看 我觉得你写得不对 函数定义不完全