%% Rotate Plot Around x-Axis and y-Axis
% Create a surface plot of the peaks function and return the surface object.

s = surf(peaks(20));
xlabel('x-axis')
ylabel('y-axis')
zlabel('z-axis')

%
% Rotate the surface plot 25 degrees around its x-axis and y-axis.

direction = [1 1 0];
rotate(s,direction,25)

% Copyright 2015 The MathWorks, Inc.