gray
Gray colormap array.
📝Syntax
c = gray
c = gray(m)
📥Input Arguments
Parameter Description
m a scalar integer value: Number of colors (256 as default value).
📤Output Arguments
Parameter Description
c Gray colormap array.
📄Description

gray returns the colormap with gray colors.

💡Examples
f = figure();
surf(peaks);
colormap('gray');
Example illustration
🔗See Also
colormap
🕔Version History
Version Description
1.0.0 initial version
Edit this page on GitHub