www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/IncludeSuperScriptOrSubscriptInLabelExample.m
%% Include Superscript and Subscript in Axis Labels % Use the |'^'| and |'_'| characters to include superscripts and subscripts % in the axis labels. Use curly braces |{}| to modify more than one character. % Copyright 2015 The MathWorks, Inc. t = linspace(0,1); y = exp(t); plot(t,y) xlabel('t_{seconds}') ylabel('e^t')