FUNCTION REFERENCE
colorcube
Colormap of evenly spaced RGB colors.
Colormap of evenly spaced RGB colors.
Syntax
map = colorcube(n)A cube of colors without grays and pure primaries, followed by red, green and blue ramps, black and a gray ramp (256 rows by default). Fewer than 9 rows give gray(n).
Example
size(colorcube(64)) % [64 3]Differences from MATLAB: Rows follow GNU Octave's published definition and can differ from MATLAB's table.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.