colormap
📝 Syntax
📥 Input argument
📤 Output argument
📄 Description
💡 Examples
🔗 See also
🕔 History
Version
📄 Description
Last updated
Last updated
f = figure()
x = linspace(-1, 1, 1024)' * ones(1, 1024);
y = x';
Z = exp(-(x .^ 2 + y .^ 2) / 0.4);
imagesc(Z);
colormap('summer')
f = figure()
x = linspace(-1, 1, 1024)' * ones(1, 1024);
y = x';
Z = exp(-(x .^ 2 + y .^ 2) / 0.4);
imagesc(Z);
colormap('gray')f = figure()
x = linspace(-1, 1, 1024)' * ones(1, 1024);
y = x';
Z = exp(-(x .^ 2 + y .^ 2) / 0.4);
imagesc(Z);
map = [0 0 0.3;
0 0 0.4;
0 0 0.5;
0 0 0.6;
0 0 0.8;
0 0 1.0];
colormap(map)