12.07.2015 Views

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

patchColor Data InterpretationYou can specify patch colors as:• A single color for all faces• One color for each face enabling flat coloring• One color for each vertex enabling interpolated coloringThe following tables summarize how <strong>MATLAB</strong> interprets color data defined bythe CData and FaceVertexCData properties.Interpretation of the CData Property[X,Y,Z]Data CData Required for Results ObtainedDimensions Indexed True Colorm-by-n scalar 1-by-1-by-3 Use the single color specified for all patch faces. Edgescan be only a single color.m-by-n1-by-n(n >= 4)1-by-n-by-3Use one color for each patch face. Edges can be only asingle color.m-by-n m-by-n m-by-n-3 Assign a color to each vertex. patch faces can be flat (asingle color) or interpolated. Edges can be flat orinterpolated.Interpretation of the FaceVertexCData PropertyVertices Faces FaceVertexCDataRequired forDimensions Dimensions Indexed True ColorResults Obtainedm-by-n k-by-3 scalar 1-by-3 Use the single color specified for allpatch faces. Edges can be only a singlecolor.2-315

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!