%% Use Different Axis Lengths
% Plot a surface and make the _x_-axis twice as long as the _y_-axis and
% _z_-axis.

% Copyright 2015 The MathWorks, Inc.


[x,y] = meshgrid(-2:.2:2);
z = x.*exp(-x.^2 - y.^2);
surf(x,y,z)
pbaspect([2 1 1])

%%
% When you specify the plot box aspect ratio, the associated mode changes
% to manual. Query the current plot box aspect ratio mode.

m = pbaspect('mode')