%% Add Colorbars to Subplots
% Create a figure with two subplots. Add colorbars to both subplots.

subplot(2,1,1) % upper subplot 
surf(peaks)
colorbar

subplot(2,1,2) % lower subplot
contourf(peaks)
colorbar

% Copyright 2015 The MathWorks, Inc.