%% Change View of Surface Plot
% 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')

%
% View the plot using an azimuth of 90 degrees and an elevation of 0 degrees. The new line of sight is along the x-axis.

view(90,0)

% Copyright 2018 The MathWorks, Inc.