|
> No Daniel, unfortunately, we can't avoid using colormaps when
> supplying a C matrix as in surf ( vx, vy, vz, C ): "The scaled color
> values are used as indices into the current colormap". Or am I missing
> something?
I think you are wrong, but I have not verified it. Look in the help files for "Surfaceplot Properties" and ceck out the section "CData".
--
CData: matrix
Vertex colors. A matrix containing values that specify the color at every point in ZData. If you set the FaceColor property to texturemap, CData does not need to be the same size as ZData. In this case, MATLAB maps CData to conform to the surfaceplot defined by ZData.
You can specify color as indexed values or true color. Indexed color data specifies a single value for each vertex. These values are either scaled to map linearly into the current colormap (see caxis) or interpreted directly as indices into the colormap, depending on the setting of the CDataMapping property. Note that any non-texture data passed as an input argument must be of type double.
True color defines an RGB value for each vertex. If the coordinate data (XData, for example) are contained in m-by-n matrices, then CData must be an m-by-n-by-3 array. The first page contains the red components, the second the green components, and the third the blue components of the colors.
--
|