%% Display Surface in a 2-D View
% Use the peaks function to get the x-, y-, and z-coordinates of a surface. Then plot the surface and label each axis.

[X,Y,Z] = peaks;
surf(X,Y,Z)
xlabel('X')
ylabel('Y')
zlabel('Z')

%
% Display the plot in a 2-D view.

view(2)

% Copyright 2018 The MathWorks, Inc.