How to make Greek letters with Latex interpreter?

72 views (last 30 days)
I want to write "Omega hat" (the greek letter Omega, with a hat on it) in a plot title and lables. for "u hat", I simply use \it\^{u} with Latex interpreter. But I cannot make Greek letters like Omega by "Latax" interpreter. the only way is using "tex" interpreter, which does not support "hat". Does anyone has any idea? How can we make Greek letters with Latex interpreter?

Accepted Answer

Matt Fig
Matt Fig on 6 Aug 2012
Edited: Matt Fig on 6 Aug 2012
Here is an example:
text('Interpreter','latex','String','$$\hat{\beta}$$','Position',[.5 .5],'FontSize',16)
or for xlabels:
xlabel('$$\hat{\alpha}$$','Interpreter','latex','FontSize',16)

More Answers (1)

Walter Roberson
Walter Roberson on 30 Jul 2012
  2 Comments
Mohammad Dehghani
Mohammad Dehghani on 6 Aug 2012
Edited: Mohammad Dehghani on 6 Aug 2012
I still cannot do that!
I want "Capital Omega hat". And it seems neither "Tex", nor "Latex" works for this case. It seems that "Omega hat" cannot be written in the title or labels of a plot.
Thanks all the same.
Mohammad Dehghani
Mohammad Dehghani on 6 Aug 2012
I use MATLAB 7.7.0 (2008b). My MATLAB interprets "\^{\O}" with Latex correctly, as Phi hat. But when it comes to "alpha", "beta", "Omega", etc, it fails to interpret! Is it a bug in my MATLAB, or I am doing a mistake?

Sign in to comment.

Categories

Find more on Labels and Annotations in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!