%% Set Plot Box Aspect Ratio for Specific Axes
% Create a figure with two subplots and return the axes objects from the
% |subplot| function. Set the plot box aspect ratio for lower subplot by
% specifying |ax2| as the first input argument to the |pbaspect| function.

% Copyright 2015 The MathWorks, Inc.


ax1 = subplot(2,1,1);
surf(peaks)

ax2 = subplot(2,1,2);
plot(peaks)
pbaspect(ax2,[2 1 1])

