MATLAB: How does one put an accent on a symbol in plots

accentsinterpreterlatex

Hi,
I'd like to insert symbols like 'hat', 'dot', 'bar', 'arrow', etc over text symbols in plots. Could someone let me know how this is done in Matlab 2014b in the figure window?
Thanks.

Best Answer

You have to set the 'Interpreter','latex' option, and use the appropriate LaTeX syntax. For details on using LaTeX, see The (Not So) Short Introduction to LaTeX2e. See the full LaTeX Documentation for details on other guides.
Related Question