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.

patchIf the coordinate data does not define closed polygons, patch closes thepolygons. The data can define concave or intersecting polygons. However, if theedges of an individual patch face intersect themselves, the resulting face mayor may not be completely filled. In that case, it is better to break up the face intosmaller polygons.Specifying Patch PropertiesYou can specify properties as property name/property value pairs, structurearrays, and cell arrays (see the set and get reference pages for examples of howto specify these data types).There are two patch properties that specify color:• CData – use when specifying x-, y-, and z-coordinates (XData, YData, ZData).• FaceVertexCData – use when specifying vertices and connection matrix(Vertices and Faces).The CData and FaceVertexCData properties accept color data as indexed or truecolor (RGB) values. See the CData and FaceVertexCData property descriptionsfor information on how to specify color.Indexed color data can represent either direct indices into the colormap orscaled values that map the data linearly to the entire colormap (see the caxisfunction for more information on this scaling). The CDataMapping propertydetermines how <strong>MATLAB</strong> interprets indexed color data.Color SpecificationCDataFaceVertexCDataColor Interpretation by <strong>MATLAB</strong>True ColorIndexedColor Mapping(CDataMapping)directscaled2-314

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

Saved successfully!

Ooh no, something went wrong!