white
All-white colormap.
Category: Other public functions: graphics
Syntax
map = white(m)
Returns an m-by-3 matrix with every row equal to [1 1 1].
map = white
Uses the length of the current colormap for m.
Description
A colormap is an m-by-3 matrix of red, green and blue levels. white fills it with ones, so everything drawn through it is white. It is useful to hide a surface while keeping its edges, or as an invisible background layer.
Input arguments
m- Number of colors.
Output arguments
map- RGB matrix with values in
[0, 1].
Example
Three white entries
map = white(3)
Output
map = 3×3
1 1 1
1 1 1
1 1 1