Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

nebula

Nebula colormap array.

Syntax

  • c = nebula
  • c = nebula(m)

Input argument

  • m - a scalar integer value: Number of colors (256 as default value).

Output argument

  • c - Nebula colormap array.

Description

nebula returns the colormap with nebula colors.

Example

f = figure();
n = 256;
cmap = nebula(n);
colormap(cmap);
imagesc(peaks(100));
colorbar;
title(['Nebula Colormap with ', num2str(n), ' Colors']);

See also

colormap.

History

VersionDescription
1.14.0initial version

Author

Allan CORNET