%% Create Multiline Subtitle
% Create a plot, and add a title with the title function. Then create a subtitle containing two lines of text by passing a cell array of character vectors to the subtitle function. Each element in the array is a separate line of text.

plot([0 2],[1 5])
title('Straight Line')
txt = {'Slope = 2','y-Intercept = 1'};
subtitle(txt)

% Copyright 2020 The MathWorks, Inc.