www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/RotatePlotAroundyAxisExample.m
%% Rotate Plot Around _y_-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 _y_-axis. direction = [0 1 0]; rotate(hSurface,direction,25)