%% Specify Target Axes
% Create two plots in a tiled chart layout. Then add a title and subtitle to each plot.

t = tiledlayout(1,2);

% Left plot
ax1 = nexttile;
plot([0 2],[1 5])
title(ax1,'A Straight Line')
subtitle(ax1,'Slope = 2, y-Intercept = 1')

% Right plot
ax2 = nexttile;
plot([0 2],[2 8])
title(ax2,'Another Straight Line')
subtitle(ax2,'Slope = 3, y-Intercept = 2')

% Copyright 2020 The MathWorks, Inc.