%% Rotate Plot Around 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 y-axis.

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

% Copyright 2015 The MathWorks, Inc.