colorbar
📝 Syntax
📥 Input argument
📤 Output argument
📄 Description
💡 Examples
🔗 See also
🕔 History
Version
📄 Description
Last updated
Last updated
f = figure();
surf(peaks);
axis('square');
colormap('summer');
colorbar()
f = figure();
surf(peaks);
axis('square');
colormap('gray');
cb = colorbar(gca);locations = { 'north';
'south';
'east';
'west';
'northoutside';
'southoutside';
'eastoutside';
'westoutside'};
f = figure();
surf(peaks);
colormap('jet');
for k = 1 : length(locations)
colorbar(locations{k});
pause(1);
end