%% Specify Tight z-Axis Limits
% Create a surface plot of the peaks data set. Adjust the view of the plot box so that you can see the surface from the side.

surf(peaks)
view([-45 15])

%
% Adjust the z-axis limits to so that there is less space above and below the surface. Change the limit method to 'tight'.

zlim tight

% Copyright 2020 The MathWorks, Inc.