%% Rotate Plot Around _x_-Axis
% Create a surface plot of the |peaks| function and return the surface handle. 

% Copyright 2015 The MathWorks, Inc.


hSurface = surf(peaks(20));

%%
% Rotate the surface plot 25 degrees around its _x_-axis.

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