ColorRGB Triplet yellow[1 1 0] magenta[1 0 1] cyan[0 1 1] red[1 0 0] green[0 1 0] blue[0 0 1] white[1 1 1] black[0 0 0] Alternatively, you can create the matrix by calling one of the predefined colormap functions. Call the function as the input argument to thergbplot...
颜色图是由值组成的矩阵,这些值用于定义诸如曲面、图像以及补片之类的图形对象的颜色。MATLAB 通过将数据值映射到颜色图中的颜色来绘制这些对象。Matlab中预设了数十种不同的colormap颜色图,如图:A colormap is a matrix of values that define the colors for graphics objects such as surface, image, and patc...
This is an example of creating a chart of built-in colormaps in MATLAB®. Read about the "colormap" function in the MATLAB documentation. For more examples, go to MATLAB Plot Gallery - http://www.mathworks.com/discovery/gallery.html...
pcolor(C) creates a pseudocolor plot using the values in matrix C. A pseudocolor plot displays matrix data as an array of colored cells (known as faces). MATLAB® creates this plot as a flat surface in the x-y plane. The surface is defined by a grid of x- and y-coordinates that...
plot(X,Y) plots vector Y versus vector X. If X or Y is a matrix, then the vector is plotted versus the rows or columns of the matrix, whichever line up. If X is a scalar and Y is a vector, disconnected line objects are created and plotted as discrete points vertically at ...
matrix | m-by-n-by-3 array of RGB triplets Color array, specified as an m-by-n matrix of colormap indices or as an m-by-n-by-3 array of RGB triplets, where Z is m-by-n. To use colormap colors, specify C as a matrix. For each grid point on the surface, C indicates a ...
Colormap for multline plotthat define the colors for graphics objects such as surface, image, and patch objects. MATLAB® draws the objects by mapping data values to colors in the colormap."is
The values in NodeCData map linearly to the colors in the current colormap, resulting in different colors for each node in the plotted graph. NodeColor— Node color [0 0.4470 0.7410] (default) | RGB triplet | hexadecimal color code | color name | matrix | 'flat' | 'none' Node color,...
scalar | vector | matrix Longitude coordinates, specified as a scalar, vector, or matrix. The sizes of lon and lat must match. Specify lon in the units indicated by the AngleUnits property of the axesm-based map. The size and shape of lon depends on the type of plot you want to cr...
Color array, specified as an m-by-n matrix of colormap indices or as an m-by-n-by-3 array of RGB triplets, where Z is m-by-n. To use colormap colors, specify C as a matrix. For each grid point on the surface, C indicates a color in the colormap. The CDataMapping property ...