FUNCTION REFERENCE

pcolor

Draw a grid of coloured cells.

Draw a grid of coloured cells.

Syntax

h = pcolor(C)

Syntax

h = pcolor(X, Y, C)

Returns a surface with zero ZData and CData from C. New plots use the 2-D view with flat colours and black edges. Each face takes its colour from its first vertex, so the last row and column of C supply no flat face colours. With C alone, X is the column index and Y is the row index. Grid sizes and surface properties follow surf.

Example

h = pcolor([1 2 3; 4 5 6; 7 8 9]); h.Type   % 'surface'

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.