c = gray
c = gray(m)
| Parameter | Description |
|---|---|
| m | a scalar integer value: Number of colors (256 as default value). |
| Parameter | Description |
|---|---|
| c | Gray colormap array. |
gray returns the colormap with gray colors.
f = figure();
surf(peaks);
colormap('gray');
| Version | Description |
|---|---|
| 1.0.0 | initial version |