www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/InsertTeXStringinFigureExample.m
%% Create Text with TeX Characters %% % Plot a line. Create text that contains TeX characters and add the text to % the line plot. plot((1:10).^2) txt = texlabel('lambda12^(3/2)/pi - pi*delta^(2/3)'); text(3,90,txt) %% % If you include the |'literal'| argument, |texlabel| interprets Greek % variable names literally. Add text with the literal variable names to the % line plot. text(4,60,texlabel('lambda12^(3/2)/pi - pi*delta^(2/3)','literal'))