%% Turn Off Box Outline for Specific Axes
% Create a figure with two subplots and assign the Axes objects to the variables ax1 and ax2. Plot a line in each subplot. Remove the box outline around the lower subplot by specifying ax2 as the first input argument to box.

ax1 = subplot(2,1,1);
plot(ax1,1:10)

ax2 = subplot(2,1,2);
plot(ax2,1:10)
box(ax2,'off')

% Copyright 2015 The MathWorks, Inc.