%% Query Plot Box Aspect Ratio
% Create a surface plot. 

% Copyright 2015 The MathWorks, Inc.


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

%%
% Query the plot box aspect ratio. The values indicate the ratio of the
% _x_-axis length to _y_-axis length to _z_-axis length.

pb = pbaspect

 