%% Display TeX Characters as Typed
% Create a plot with a title. Then create a subtitle containing an underscore character that the TeX interpreter normally uses for subscripts. Set the Interpreter to 'none' when you call the subtitle function, so that the underscore character appears in the subtitle.

plot([0 2],[1 5])
title('Straight Line')
subtitle('y_1 = 2x + 1','Interpreter','none')

% Copyright 2020 The MathWorks, Inc.