%% Label z-Axis of Specific Axes
% Create two subplots and return the handles to the axes objects, s(1) and s(2).

figure
s(1) = subplot(2,1,1);
surf(peaks(30))
s(2) = subplot(2,1,2);
surf(peaks(45))

%
% Label the z-axis of each plot by referring to the axes handles, s(1) and s(2).

zlabel(s(1),'Height1')
zlabel(s(2),'Height2')

% Copyright 2015 The MathWorks, Inc.