www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/AddColorbarToGraphExample.m
%% Add Colorbar to Graph % Add a colorbar to a surface plot indicating the color scale. % Copyright 2015 The MathWorks, Inc. figure surf(peaks) colorbar %% % By default, the |colorbar| function adds a vertical colorbar to the right % side of the graph.